From: Ilan Peer Date: Wed, 16 Dec 2020 11:00:15 +0000 (+0200) Subject: nl80211: Always register for RX authentication frames with PASN X-Git-Tag: hostap_2_10~690 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24472122147729cc00536be442bd64231dd282e0;p=thirdparty%2Fhostap.git nl80211: Always register for RX authentication frames with PASN Register a filter that only requests PASN Authentication frames to be passed to user space. Signed-off-by: Ilan Peer --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 97c6bf1ad..919c6128d 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2326,6 +2326,14 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss) (u8 *) "\x03\x00", 2, false); } +#ifdef CONFIG_PASN + /* register for PASN Authentication frames */ + if ((drv->capa.flags & WPA_DRIVER_FLAGS_SME) && + nl80211_register_frame(bss, bss->nl_mgmt, type, + (u8 *) "\x07\x00", 2, false)) + ret = -1; +#endif /* CONFIG_PASN */ + #ifdef CONFIG_INTERWORKING /* QoS Map Configure */ if (nl80211_register_action_frame(bss, (u8 *) "\x01\x04", 2) < 0)