mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
netdev: remove handling of beacon loss event
This commit is contained in:
parent
836beb1276
commit
1106514a38
14
src/netdev.c
14
src/netdev.c
@ -671,16 +671,6 @@ struct netdev *netdev_find(int ifindex)
|
||||
return l_queue_find(netdev_list, netdev_match, L_UINT_TO_PTR(ifindex));
|
||||
}
|
||||
|
||||
static void netdev_lost_beacon(struct netdev *netdev)
|
||||
{
|
||||
if (!netdev->connected)
|
||||
return;
|
||||
|
||||
if (netdev->event_filter)
|
||||
netdev->event_filter(netdev, NETDEV_EVENT_LOST_BEACON, NULL,
|
||||
netdev->user_data);
|
||||
}
|
||||
|
||||
/* Threshold RSSI for roaming to trigger, configurable in main.conf */
|
||||
static int LOW_SIGNAL_THRESHOLD;
|
||||
|
||||
@ -771,10 +761,6 @@ static void netdev_cqm_event(struct l_genl_msg *msg, struct netdev *netdev)
|
||||
|
||||
while (l_genl_attr_next(&nested, &type, &len, &data)) {
|
||||
switch (type) {
|
||||
case NL80211_ATTR_CQM_BEACON_LOSS_EVENT:
|
||||
netdev_lost_beacon(netdev);
|
||||
break;
|
||||
|
||||
case NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT:
|
||||
if (len != 4)
|
||||
continue;
|
||||
|
@ -40,7 +40,6 @@ enum netdev_result {
|
||||
enum netdev_event {
|
||||
NETDEV_EVENT_AUTHENTICATING,
|
||||
NETDEV_EVENT_ASSOCIATING,
|
||||
NETDEV_EVENT_LOST_BEACON,
|
||||
NETDEV_EVENT_DISCONNECT_BY_AP,
|
||||
NETDEV_EVENT_DISCONNECT_BY_SME,
|
||||
NETDEV_EVENT_RSSI_THRESHOLD_LOW,
|
||||
@ -89,7 +88,6 @@ typedef void (*netdev_connect_cb_t)(struct netdev *netdev,
|
||||
*
|
||||
* NETDEV_EVENT_AUTHENTICATING - unused
|
||||
* NETDEV_EVENT_ASSOCIATING - unused
|
||||
* NETDEV_EVENT_LOST_BEACON - unused
|
||||
* NETDEV_EVENT_DISCONNECT_BY_AP - MMPDU_REASON_CODE
|
||||
* NETDEV_EVENT_DISCONNECT_BY_SME - MMPDU_REASON_CODE
|
||||
* NETDEV_EVENT_RSSI_THRESHOLD_LOW - unused
|
||||
|
Loading…
Reference in New Issue
Block a user