mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 20:12:37 +01:00
netdev: Move deauthenticate event handling
.. out of wiphy.c
This commit is contained in:
parent
f5a7e204e7
commit
d82754636b
@ -185,6 +185,12 @@ struct netdev *netdev_find(int ifindex)
|
|||||||
return l_queue_find(netdev_list, netdev_match, L_UINT_TO_PTR(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)
|
static void netdev_cmd_associate_cb(struct l_genl_msg *msg, void *user_data)
|
||||||
{
|
{
|
||||||
struct netdev *netdev = 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:
|
case NL80211_CMD_AUTHENTICATE:
|
||||||
netdev_authenticate_event(msg, netdev);
|
netdev_authenticate_event(msg, netdev);
|
||||||
break;
|
break;
|
||||||
|
case NL80211_CMD_DEAUTHENTICATE:
|
||||||
|
netdev_deauthenticate_event(msg, netdev);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -836,12 +836,6 @@ static void mlme_associate_event(struct l_genl_msg *msg, struct device *device)
|
|||||||
operstate_cb, 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,
|
static void mlme_disconnect_event(struct l_genl_msg *msg,
|
||||||
struct device *device)
|
struct device *device)
|
||||||
{
|
{
|
||||||
@ -1540,9 +1534,6 @@ static void wiphy_mlme_notify(struct l_genl_msg *msg, void *user_data)
|
|||||||
case NL80211_CMD_ASSOCIATE:
|
case NL80211_CMD_ASSOCIATE:
|
||||||
mlme_associate_event(msg, device);
|
mlme_associate_event(msg, device);
|
||||||
break;
|
break;
|
||||||
case NL80211_CMD_DEAUTHENTICATE:
|
|
||||||
mlme_deauthenticate_event(msg, device);
|
|
||||||
break;
|
|
||||||
case NL80211_CMD_DISCONNECT:
|
case NL80211_CMD_DISCONNECT:
|
||||||
mlme_disconnect_event(msg, device);
|
mlme_disconnect_event(msg, device);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user