[PATCH 1/7] nl80211: Always register managment frames handler
Ilan Peer
ilan.peer
Sun Dec 28 18:14:57 PST 2014
From: Avraham Stern <avraham.stern at intel.com>
If registering WMM-AC ADDTS response action frame or WMM-AC DELTS
action frame fails, the managment frame handler is not being
registered. This results with a segmentation fault when trying to
unsubscribe the handler when the interface is removed.
Fix it by always registering the handler and just returning a negative
value to note that the action frame could not be registered.
This patch should be squashed with the patch: "nl80211: implement
add_ts/del_ts ops".
Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
src/drivers/driver_nl80211.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index cff7b0d..49ab7e5 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1824,11 +1824,11 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss)
/* WMM-AC ADDTS Response */
if (nl80211_register_action_frame(bss, (u8 *) "\x11\x01", 2) < 0)
- return -1;
+ ret = -1;
/* WMM-AC DELTS */
if (nl80211_register_action_frame(bss, (u8 *) "\x11\x02", 2) < 0)
- return -1;
+ ret = -1;
/* Radio Measurement - Neighbor Report Response */
if (nl80211_register_action_frame(bss, (u8 *) "\x05\x05", 2) < 0)
--
1.8.3.2
More information about the Hostap
mailing list