3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 17:39:28 +01:00

netdev: Issue initial SET_CQM when in STATION mode

This commit is contained in:
Denis Kenzior 2018-08-19 22:52:52 -05:00
parent 99b5c67c88
commit 9ca72b9527

View File

@ -3886,6 +3886,10 @@ static void netdev_set_iftype_cb(struct l_genl_msg *msg, void *user_data)
netdev->type = req->pending_type;
/* Set RSSI threshold for CQM notifications */
if (netdev->type == NL80211_IFTYPE_STATION)
netdev_cqm_rssi_update(netdev);
/* If the netdev was down originally, we're done */
if (!req->bring_up)
goto done;
@ -4576,7 +4580,8 @@ static void netdev_create_from_genl(struct l_genl_msg *msg)
netdev_sa_query_req_frame_event, NULL);
/* Set RSSI threshold for CQM notifications */
netdev_cqm_rssi_update(netdev);
if (netdev->type == NL80211_IFTYPE_STATION)
netdev_cqm_rssi_update(netdev);
}
static void netdev_get_interface_callback(struct l_genl_msg *msg,