diff --git a/src/netdev.c b/src/netdev.c index 81b773db..34ccbdb2 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -185,6 +185,12 @@ struct netdev *netdev_find(int ifindex) return l_queue_find(netdev_list, netdev_match, L_UINT_TO_PTR(ifindex)); } +static void netdev_deauthenticate_event(struct l_genl_msg *msg, + struct netdev *netdev) +{ + l_debug(""); +} + static void netdev_cmd_associate_cb(struct l_genl_msg *msg, void *user_data) { struct netdev *netdev = user_data; @@ -418,6 +424,9 @@ static void netdev_mlme_notify(struct l_genl_msg *msg, void *user_data) case NL80211_CMD_AUTHENTICATE: netdev_authenticate_event(msg, netdev); break; + case NL80211_CMD_DEAUTHENTICATE: + netdev_deauthenticate_event(msg, netdev); + break; } } diff --git a/src/wiphy.c b/src/wiphy.c index d3065bef..22d4823c 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -836,12 +836,6 @@ static void mlme_associate_event(struct l_genl_msg *msg, struct device *device) operstate_cb, device); } -static void mlme_deauthenticate_event(struct l_genl_msg *msg, - struct device *device) -{ - l_debug(""); -} - static void mlme_disconnect_event(struct l_genl_msg *msg, struct device *device) { @@ -1540,9 +1534,6 @@ static void wiphy_mlme_notify(struct l_genl_msg *msg, void *user_data) case NL80211_CMD_ASSOCIATE: mlme_associate_event(msg, device); break; - case NL80211_CMD_DEAUTHENTICATE: - mlme_deauthenticate_event(msg, device); - break; case NL80211_CMD_DISCONNECT: mlme_disconnect_event(msg, device); break;