From d82754636bf4b926c1b4144cb4207e92b74a7cdb Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 15 Jun 2016 14:02:24 -0500 Subject: [PATCH] netdev: Move deauthenticate event handling .. out of wiphy.c --- src/netdev.c | 9 +++++++++ src/wiphy.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) 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;