]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Store MB IEs from (Re)Association Request
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
src/ap/sta_info.c
src/ap/sta_info.h

index 6ecd094ac3b4e681b9109c26c914642331ea70ca..d94e4f1f4f402c9962da3c04f73a23d02393d0f0 100644 (file)
@@ -155,6 +155,14 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
                sta->hs20_ie = NULL;
 #endif /* CONFIG_HS20 */
 
+#ifdef CONFIG_FST
+       wpabuf_free(sta->mb_ies);
+       if (hapd->iface->fst)
+               sta->mb_ies = mb_ies_by_info(&elems.mb_ies);
+       else
+               sta->mb_ies = NULL;
+#endif /* CONFIG_FST */
+
        if (hapd->conf->wpa) {
                if (ie == NULL || ielen == 0) {
 #ifdef CONFIG_WPS
index db20c86790936b8be17847039c29139b8e54a8e3..cd3975d77c1d2f20992b1cb363968e235cfc27ba 100644 (file)
@@ -1535,6 +1535,14 @@ static u16 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
                sta->hs20_ie = NULL;
 #endif /* CONFIG_HS20 */
 
+#ifdef CONFIG_FST
+       wpabuf_free(sta->mb_ies);
+       if (hapd->iface->fst)
+               sta->mb_ies = mb_ies_by_info(&elems.mb_ies);
+       else
+               sta->mb_ies = NULL;
+#endif /* CONFIG_FST */
+
        return WLAN_STATUS_SUCCESS;
 }
 
index 20847d5827d955190d803252accdc2e2862dcea6..9a1b55a3896b7323e6248976e89a05a1794ad5d0 100644 (file)
@@ -296,6 +296,9 @@ void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta)
        wpabuf_free(sta->wps_ie);
        wpabuf_free(sta->p2p_ie);
        wpabuf_free(sta->hs20_ie);
+#ifdef CONFIG_FST
+       wpabuf_free(sta->mb_ies);
+#endif /* CONFIG_FST */
 
        os_free(sta->ht_capabilities);
        os_free(sta->vht_capabilities);
index 52a9997fe26ff3499c1b21df9d9d7d02ed4de8d2..420d64e5793bf86361b7c5804a6a0aa308bf1dde 100644 (file)
@@ -153,6 +153,9 @@ struct sta_info {
        struct wpabuf *hs20_deauth_req;
        char *hs20_session_info_url;
        int hs20_disassoc_timer;
+#ifdef CONFIG_FST
+       struct wpabuf *mb_ies; /* MB IEs from (Re)Association Request */
+#endif /* CONFIG_FST */
 
        struct os_reltime connected_time;