mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
FST: Store MB IEs from (Re)Association Request
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
104bef453b
commit
ae667c0827
@ -155,6 +155,14 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
|
|||||||
sta->hs20_ie = NULL;
|
sta->hs20_ie = NULL;
|
||||||
#endif /* CONFIG_HS20 */
|
#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 (hapd->conf->wpa) {
|
||||||
if (ie == NULL || ielen == 0) {
|
if (ie == NULL || ielen == 0) {
|
||||||
#ifdef CONFIG_WPS
|
#ifdef CONFIG_WPS
|
||||||
|
@ -1535,6 +1535,14 @@ static u16 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
|
|||||||
sta->hs20_ie = NULL;
|
sta->hs20_ie = NULL;
|
||||||
#endif /* CONFIG_HS20 */
|
#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;
|
return WLAN_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,6 +296,9 @@ void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta)
|
|||||||
wpabuf_free(sta->wps_ie);
|
wpabuf_free(sta->wps_ie);
|
||||||
wpabuf_free(sta->p2p_ie);
|
wpabuf_free(sta->p2p_ie);
|
||||||
wpabuf_free(sta->hs20_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->ht_capabilities);
|
||||||
os_free(sta->vht_capabilities);
|
os_free(sta->vht_capabilities);
|
||||||
|
@ -153,6 +153,9 @@ struct sta_info {
|
|||||||
struct wpabuf *hs20_deauth_req;
|
struct wpabuf *hs20_deauth_req;
|
||||||
char *hs20_session_info_url;
|
char *hs20_session_info_url;
|
||||||
int hs20_disassoc_timer;
|
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;
|
struct os_reltime connected_time;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user