if (nl_send_auto_complete(drv->nl_handle, msg) < 0 ||
(err = nl_wait_for_ack(drv->nl_handle)) < 0) {
if (err != -ENOENT) {
- err = 0;
+ ret = 0;
goto out;
}
}
if (nl_send_auto_complete(drv->nl_handle, msg) < 0 ||
(err = nl_wait_for_ack(drv->nl_handle)) < 0) {
if (err != -ENOENT) {
- err = 0;
+ ret = 0;
goto out;
}
}
NLA_PUT_U8(msg, NL80211_ATTR_KEY_IDX, idx);
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(iface));
- cb = nl_cb_alloc(NL_CB_CUSTOM);
+ cb = nl_cb_clone(drv->nl_cb);
if (!cb)
goto out;
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr);
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(drv->iface));
- cb = nl_cb_alloc(NL_CB_CUSTOM);
+ cb = nl_cb_clone(drv->nl_cb);
if (!cb)
goto out;
struct nl_msg *msg;
int err = -1;
struct nl_cb *cb = NULL;
- int finished;
+ int finished = 0;
struct phy_info_arg result = {
.num_modes = num_modes,
.modes = NULL,
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(drv->iface));
- cb = nl_cb_alloc(NL_CB_CUSTOM);
+ cb = nl_cb_clone(drv->nl_cb);
if (!cb)
goto out;