mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
nl80211: Fix error while enabling AP mode with driver-SME
Following commita70cd0db87
('Don't register for Beacon frames for IEEE 802.11ad AP'), nl80211_get_wiphy_data_ap() is unconditionally called when starting AP. This function tries to register for Beacon frames RX which fails for some driver which don't support such registration and do not need it in case the driver implements AP mode SME functionality. Fix this by conditionally calling nl80211_get_wiphy_data_ap() like prior to commita70cd0db87
. Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
This commit is contained in:
parent
eb04c3bf8a
commit
89fa633afb
@ -3786,7 +3786,8 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
||||
beacon_set);
|
||||
if (beacon_set)
|
||||
cmd = NL80211_CMD_SET_BEACON;
|
||||
else if (!nl80211_get_wiphy_data_ap(bss))
|
||||
else if (!drv->device_ap_sme && !drv->use_monitor &&
|
||||
!nl80211_get_wiphy_data_ap(bss))
|
||||
return -ENOBUFS;
|
||||
|
||||
wpa_hexdump(MSG_DEBUG, "nl80211: Beacon head",
|
||||
|
Loading…
Reference in New Issue
Block a user