]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Allow PASN Authentication frames on P2P device interface
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 26 Nov 2024 09:10:14 +0000 (11:10 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Dec 2024 11:12:12 +0000 (13:12 +0200)
This is required for PASN based pairing used in P2P2.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/drivers/driver_nl80211.c

index eb83c8eb630512e4b48108d68ccd8c1734604ea5..705facfce6ea8f89c187071033499946f89dac13 100644 (file)
@@ -4400,7 +4400,8 @@ static int wpa_driver_nl80211_send_mlme(struct i802_bss *bss, const u8 *data,
                        encrypt = 0;
        }
 
-       if (is_sta_interface(drv->nlmode) &&
+       if ((is_sta_interface(drv->nlmode) ||
+            drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) &&
            WLAN_FC_GET_TYPE(fc) == WLAN_FC_TYPE_MGMT &&
            WLAN_FC_GET_STYPE(fc) == WLAN_FC_STYPE_AUTH) {
                if (freq == 0 &&