]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Send FST Action frames to AP mode processing
authorAnton Nayshtut <qca_antonn@qca.qualcomm.com>
Wed, 21 Jan 2015 13:30:48 +0000 (15:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Jul 2015 15:26:15 +0000 (18:26 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/drv_callbacks.c
src/ap/ieee802_11.c

index d94e4f1f4f402c9962da3c04f73a23d02393d0f0..7094bacc8e5134b3751161460739dbe3c3c6b889 100644 (file)
@@ -18,6 +18,7 @@
 #include "crypto/random.h"
 #include "p2p/p2p.h"
 #include "wps/wps.h"
+#include "fst/fst.h"
 #include "wnm_ap.h"
 #include "hostapd.h"
 #include "ieee802_11.h"
@@ -759,6 +760,13 @@ static void hostapd_action_rx(struct hostapd_data *hapd,
                ieee802_11_rx_wnm_action_ap(hapd, mgmt, drv_mgmt->frame_len);
        }
 #endif /* CONFIG_WNM */
+#ifdef CONFIG_FST
+       if (mgmt->u.action.category == WLAN_ACTION_FST && hapd->iface->fst) {
+               fst_rx_action(hapd->iface->fst, mgmt, drv_mgmt->frame_len);
+               return;
+       }
+#endif /* CONFIG_FST */
+
 }
 
 
index cd3975d77c1d2f20992b1cb363968e235cfc27ba..dff6d0ea9d397c94eaf22e643eb9e7b3dfd35c2c 100644 (file)
@@ -23,6 +23,7 @@
 #include "radius/radius_client.h"
 #include "p2p/p2p.h"
 #include "wps/wps.h"
+#include "fst/fst.h"
 #include "hostapd.h"
 #include "beacon.h"
 #include "ieee802_11_auth.h"
@@ -2109,6 +2110,12 @@ static int handle_action(struct hostapd_data *hapd,
                ieee802_11_rx_wnm_action_ap(hapd, mgmt, len);
                return 1;
 #endif /* CONFIG_WNM */
+#ifdef CONFIG_FST
+       case WLAN_ACTION_FST:
+               if (hapd->iface->fst)
+                       fst_rx_action(hapd->iface->fst, mgmt, len);
+               return 1;
+#endif /* CONFIG_FST */
        case WLAN_ACTION_PUBLIC:
        case WLAN_ACTION_PROTECTED_DUAL:
 #ifdef CONFIG_IEEE80211N