]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Register to receive DPP Public Action frames
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 15 Jun 2017 18:18:05 +0000 (21:18 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 17 Jun 2017 15:04:54 +0000 (18:04 +0300)
These are needed for DPP exchanges. In addition, register GAS frames for
DPP builds.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c

index 1b7be39ce3064c03021293e7fba2125a284180ea..87776401b2004ee041015b82fe1e449f13484c9e 100644 (file)
@@ -2032,7 +2032,7 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss)
        if (nl80211_register_action_frame(bss, (u8 *) "\x01\x04", 2) < 0)
                ret = -1;
 #endif /* CONFIG_INTERWORKING */
-#if defined(CONFIG_P2P) || defined(CONFIG_INTERWORKING)
+#if defined(CONFIG_P2P) || defined(CONFIG_INTERWORKING) || defined(CONFIG_DPP)
        /* GAS Initial Request */
        if (nl80211_register_action_frame(bss, (u8 *) "\x04\x0a", 2) < 0)
                ret = -1;
@@ -2057,7 +2057,7 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss)
        /* Protected GAS Comeback Response */
        if (nl80211_register_action_frame(bss, (u8 *) "\x09\x0d", 2) < 0)
                ret = -1;
-#endif /* CONFIG_P2P || CONFIG_INTERWORKING */
+#endif /* CONFIG_P2P || CONFIG_INTERWORKING || CONFIG_DPP */
 #ifdef CONFIG_P2P
        /* P2P Public Action */
        if (nl80211_register_action_frame(bss,
@@ -2070,6 +2070,13 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss)
                                          5) < 0)
                ret = -1;
 #endif /* CONFIG_P2P */
+#ifdef CONFIG_DPP
+       /* DPP Public Action */
+       if (nl80211_register_action_frame(bss,
+                                         (u8 *) "\x04\x09\x50\x6f\x9a\x1a",
+                                         6) < 0)
+               ret = -1;
+#endif /* CONFIG_DPP */
 #ifdef CONFIG_IEEE80211W
        /* SA Query Response */
        if (nl80211_register_action_frame(bss, (u8 *) "\x08\x01", 2) < 0)