hostap/src/ap
Jouni Malinen 93ba13bcfd Fix status code in SAE/DPP association PMKID mismatch (driver-AP-SME)
wpa_validate_wpa_ie() was already extended to cover these cases with
WPA_INVALID_PMKID return value, but hostapd_notif_assoc() did not have
code for mapping this into the appropriate status code
(STATUS_INVALID_PMKID) and ended up using the default
(WLAN_STATUS_INVALID_IE) instead. This caused AP SME-in-driver cases
returning incorrect status code when the AP did not have a matching
PMKSA cache entry. This could result in unexpected station behavior
where the station could continue trying to use a PMKSA cache entry that
the AP does not have and not being able to recover this.

Fix this by adding the previously missed mapping of validation errors to
status/reason codes.

Fixes: 567da5bbd0 ("DPP: Add new AKM")
Fixes: 458d8984de ("SAE: Reject request with mismatching PMKID (no PMKSA cache entry)")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2019-11-09 00:33:58 +02:00
..
accounting.c Extra RADIUS request attributes from SQLite 2019-07-30 19:58:09 +03:00
accounting.h
acs.c ACS: Stop before scan if no channels in chanlist are available 2019-09-19 12:09:47 +03:00
acs.h
airtime_policy.c hostapd: Add airtime policy configuration support 2019-05-02 14:57:43 +03:00
airtime_policy.h hostapd: Add airtime policy configuration support 2019-05-02 14:57:43 +03:00
ap_config.c SAE: Derive H2E PT in AP when starting the AP 2019-10-15 15:39:22 +03:00
ap_config.h AP: Add op_class config item to specify 6 GHz channels uniquely 2019-10-15 15:39:22 +03:00
ap_drv_ops.c nl80211: Add STA node details in AP through QCA vendor subcommand 2019-10-25 19:29:53 +03:00
ap_drv_ops.h Add EDMG parameters to set_freq functions 2019-10-07 16:59:23 +03:00
ap_list.c
ap_list.h
ap_mlme.c
ap_mlme.h
authsrv.c EAP server: Configurable maximum number of authentication message rounds 2019-09-01 17:19:35 +03:00
authsrv.h
beacon.c AP: Publish only HE capabilities and operation IEs on 6 GHz band 2019-10-15 15:39:22 +03:00
beacon.h
bss_load.c hostapd: Add average channel utilization in STATUS 2017-12-12 00:48:27 +02:00
bss_load.h
ctrl_iface_ap.c HE: Add 11ax info to ap mode ctrl iface STATUS command 2019-10-25 19:29:53 +03:00
ctrl_iface_ap.h DPP: Allow PMKSA cache entries to be added through hostapd ctrl_iface 2017-06-19 21:13:17 +03:00
dfs.c Add EDMG parameters to set_freq functions 2019-10-07 16:59:23 +03:00
dfs.h
dhcp_snoop.c HS 2.0: DHCP broadcast-to-unicast conversion before address learning 2018-12-30 01:05:18 +02:00
dhcp_snoop.h
dpp_hostapd.c DPP2: Support multiple Config Objects in Enrollee 2019-10-01 14:21:51 +03:00
dpp_hostapd.h DPP2: hostapd as TCP Relay 2019-04-22 21:08:59 +03:00
drv_callbacks.c Fix status code in SAE/DPP association PMKID mismatch (driver-AP-SME) 2019-11-09 00:33:58 +02:00
eap_user_db.c Check snprintf result to avoid compiler warnings 2018-12-24 11:09:22 +02:00
eth_p_oui.c FT: Replace inter-AP protocol with use of OUI Extended Ethertype 2017-05-03 18:30:31 +03:00
eth_p_oui.h FT: Replace inter-AP protocol with use of OUI Extended Ethertype 2017-05-03 18:30:31 +03:00
fils_hlp.c FILS: Do not process FILS HLP request again while previous one is pending 2018-12-07 16:03:40 +02:00
fils_hlp.h
gas_query_ap.c DPP: Integration for hostapd 2017-06-19 21:13:17 +03:00
gas_query_ap.h DPP: Integration for hostapd 2017-06-19 21:13:17 +03:00
gas_serv.c DPP2: hostapd as TCP Relay 2019-04-22 21:08:59 +03:00
gas_serv.h DPP2: hostapd as TCP Relay 2019-04-22 21:08:59 +03:00
hostapd.c hostapd: Check EDMG configuration against capability 2019-10-07 17:20:41 +03:00
hostapd.h Remove IAPP functionality from hostapd 2019-09-11 13:11:03 +03:00
hs20.c Remove CONFIG_IEEE80211W build parameter 2019-09-08 17:33:40 +03:00
hs20.h HS 2.0: Move Terms and Conditions Server URL generation from AP to AS 2018-06-21 20:50:54 +03:00
hw_features.c AP: Add op_class config item to specify 6 GHz channels uniquely 2019-10-15 15:39:22 +03:00
hw_features.h hostapd: Check EDMG configuration against capability 2019-10-07 17:20:41 +03:00
ieee802_1x.c Remove CONFIG_IEEE80211W build parameter 2019-09-08 17:33:40 +03:00
ieee802_1x.h Extra RADIUS request attributes from SQLite 2019-07-30 19:58:09 +03:00
ieee802_11.c SAE: Determine H2E vs. looping when restarting SAE auth in AP mode 2019-10-25 19:29:53 +03:00
ieee802_11.h Add RSNXE into (Re)Association Response frames 2019-10-18 15:49:32 +03:00
ieee802_11_auth.c Allow remote RADIUS authentication with local VLAN management 2019-01-02 23:27:49 +02:00
ieee802_11_auth.h Extend ACL check for Probe Request frames 2018-03-03 00:42:16 +02:00
ieee802_11_he.c AP: Publish only HE capabilities and operation IEs on 6 GHz band 2019-10-15 15:39:22 +03:00
ieee802_11_ht.c AP: Publish only HE capabilities and operation IEs on 6 GHz band 2019-10-15 15:39:22 +03:00
ieee802_11_shared.c Fix AP Extended Capability length determination 2019-10-25 16:03:37 +03:00
ieee802_11_vht.c AP: Publish only HE capabilities and operation IEs on 6 GHz band 2019-10-15 15:39:22 +03:00
Makefile Remove IAPP functionality from hostapd 2019-09-11 13:11:03 +03:00
mbo_ap.c
mbo_ap.h
ndisc_snoop.c
ndisc_snoop.h
neighbor_db.c HE: Handle HE capability in neighbor DB 2019-05-27 17:40:33 +03:00
neighbor_db.h RRM: Move neighbor report functions 2019-01-02 16:47:09 +02:00
p2p_hostapd.c
p2p_hostapd.h
pmksa_cache_auth.c FILS: Update PMKID derivation rules for ERP key hierarchy establishment 2017-09-13 22:17:58 +03:00
pmksa_cache_auth.h OWE: PMKSA caching in AP mode 2017-10-09 12:12:54 +03:00
preauth_auth.c
preauth_auth.h
rrm.c hostapd: Fix a typo in function name 2019-01-02 16:40:34 +02:00
rrm.h
sta_info.c HE: Add 11ax info to ap mode ctrl iface STATUS command 2019-10-25 19:29:53 +03:00
sta_info.h Remove CONFIG_IEEE80211W build parameter 2019-09-08 17:33:40 +03:00
taxonomy.c
taxonomy.h
tkip_countermeasures.c hostapd: Add logging around Michael MIC related failures 2018-04-02 16:51:29 +03:00
tkip_countermeasures.h
utils.c
vlan.c
vlan.h
vlan_full.c vlan: Use new bridge ioctl() 2019-01-02 00:23:43 +02:00
vlan_ifconfig.c
vlan_init.c Check snprintf result to avoid compiler warnings 2018-12-24 11:09:22 +02:00
vlan_init.h
vlan_ioctl.c
vlan_util.c
vlan_util.h
wmm.c AP: Consider regulatory limitation when filling WMM element 2019-05-28 23:37:25 +03:00
wmm.h
wnm_ap.c Remove CONFIG_IEEE80211W build parameter 2019-09-08 17:33:40 +03:00
wnm_ap.h WNM: Collocated Interference Reporting 2018-10-30 14:07:51 +02:00
wpa_auth.c RSN: Verify RSNXE match between (Re)AssocReq and EAPOL-Key msg 2/4 2019-10-18 00:20:29 +03:00
wpa_auth.h Store a copy of Association Request RSNXE in AP mode for later use 2019-10-18 00:20:29 +03:00
wpa_auth_ft.c FT-SAE: Add RSNXE into FT MIC 2019-10-18 16:20:27 +03:00
wpa_auth_glue.c nl80211: Add STA node details in AP through QCA vendor subcommand 2019-10-25 19:29:53 +03:00
wpa_auth_glue.h
wpa_auth_i.h Store a copy of Association Request RSNXE in AP mode for later use 2019-10-18 00:20:29 +03:00
wpa_auth_ie.c Merge wpa_supplicant and hostapd EAPOL-Key KDE parsers 2019-10-18 13:02:27 +03:00
wpa_auth_ie.h Merge wpa_supplicant and hostapd EAPOL-Key KDE parsers 2019-10-18 13:02:27 +03:00
wpa_auth_kay.c macsec: Support IEEE 802.1X(EAP)/PSK MACsec Key Agreement in hostapd 2019-06-03 20:27:44 +03:00
wpa_auth_kay.h macsec: Support IEEE 802.1X(EAP)/PSK MACsec Key Agreement in hostapd 2019-06-03 20:27:44 +03:00
wps_hostapd.c Remove CONFIG_IEEE80211W build parameter 2019-09-08 17:33:40 +03:00
wps_hostapd.h
x_snoop.c
x_snoop.h