3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 14:22:37 +01:00

netdev: Move deauthenticate event handling

.. out of wiphy.c
This commit is contained in:
Denis Kenzior 2016-06-15 14:02:24 -05:00
parent f5a7e204e7
commit d82754636b
2 changed files with 9 additions and 9 deletions

View File

@ -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;
}
}

View File

@ -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;