hostap/src/ap
Jouni Malinen db5e53cb06 mesh: Fix struct hostapd_data initialization
The local custom version of allocating and initializing struct
hostapd_data within wpa_supplicant_mesh_init() is problematic. This has
already missed couple of initialization steps that are required. Instead
of trying to remember to keep this up to date, use
hostapd_alloc_bss_data() so that there is only one place for this
initialization.

This is fixing a recent issue where FILS HLP started using
hapd->dhcp_server and expected that to be initialized to -1. For the
mesh case, that did not happen and when removing the interface, the FILS
HLP implementation ended up unregistering eloop socket for
hapd->dhcp_server (= 0). This could result in missing socket callbacks
for an arbitrary socket.

Signed-off-by: Jouni Malinen <j@w1.fi>
2017-02-04 22:17:54 +02:00
..
accounting.c Remove unused generation of Request Authenticator in Account-Request 2016-09-22 00:34:19 +03:00
accounting.h RADIUS: Use more likely unique accounting Acct-{,Multi-}Session-Id 2016-02-06 17:10:19 +02:00
acs.c ACS: Remove unreachable case from a debug print 2016-01-07 16:50:53 +02:00
acs.h
ap_config.c FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
ap_config.h FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
ap_drv_ops.c Check for driver initialization before doing driver operations 2016-08-19 16:08:00 +03:00
ap_drv_ops.h Check for driver initialization before doing driver operations 2016-08-19 16:08:00 +03:00
ap_list.c Move ap_list_timer() to use common AP periodic cleanup mechanism 2015-07-20 13:42:35 +03:00
ap_list.h Move ap_list_timer() to use common AP periodic cleanup mechanism 2015-07-20 13:42:35 +03:00
ap_mlme.c FILS: Do not clear PTK on FILS Auth/Assoc (AP) 2016-10-22 18:11:14 +03:00
ap_mlme.h
authsrv.c Server configuration for OCSP stapling with ocsp_multi (RFC 6961) 2015-12-22 19:42:07 +02:00
authsrv.h
beacon.c Add multicast to unicast support 2016-12-04 21:00:06 +02:00
beacon.h hostapd: Added signal level to STA tracking 2016-10-29 00:55:49 +03:00
bss_load.c AP: Add support for BSS load element (STA Count, Channel Utilization) 2014-10-21 23:25:48 +03:00
bss_load.h AP: Add support for BSS load element (STA Count, Channel Utilization) 2014-10-21 23:25:48 +03:00
ctrl_iface_ap.c mesh: Add MESH_PMKSA_GET/ADD commands 2017-01-14 18:07:46 +02:00
ctrl_iface_ap.h mesh: Add MESH_PMKSA_GET/ADD commands 2017-01-14 18:07:46 +02:00
dfs.c hostapd: Handle running out of DFS channels 2016-03-08 12:16:37 +02:00
dfs.h DFS offload: Add main DFS handler for offloaded case 2015-03-05 17:21:30 +02:00
dhcp_snoop.c ProxyARP: Use more robust DHCP option parsing 2017-01-31 17:46:13 +02:00
dhcp_snoop.h AP: Add support for Proxy ARP, DHCP snooping mechanism 2014-10-28 01:08:29 +02:00
drv_callbacks.c FT: Differentiate between FT for station and for AP in build 2016-10-29 22:14:54 +03:00
eap_user_db.c Improve error messages related to EAP DB 2015-03-28 13:16:26 +02:00
fils_hlp.c FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
fils_hlp.h FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
gas_serv.c GAS: Set temporary session timeout bigger than gas_comeback_delay 2017-01-30 13:25:48 +02:00
gas_serv.h Interworking: Add support for configuring arbitrary ANQP-elements 2015-10-07 17:07:21 +03:00
hostapd.c mesh: Fix struct hostapd_data initialization 2017-02-04 22:17:54 +02:00
hostapd.h FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
hs20.c HS 2.0R2 AP: Add support for deauthentication request 2014-02-26 01:24:24 +02:00
hs20.h HS 2.0R2 AP: Add support for deauthentication request 2014-02-26 01:24:24 +02:00
hw_features.c Make debug print clearer for AP/mesh mode secondary channel issues 2016-12-13 15:09:15 +02:00
hw_features.h hostapd: Fix some compilation errors 2015-03-29 20:51:14 +03:00
iapp.c IAPP: Set SO_REUSEADDR on listening socket 2016-08-18 20:01:48 +03:00
iapp.h
ieee802_1x.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
ieee802_1x.h FILS: Export IEEE 802.1X helper functions 2016-10-22 23:13:17 +03:00
ieee802_11.c FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
ieee802_11.h FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
ieee802_11_auth.c RADIUS: Fix possible memory leak when parsing per-STA passphrase 2016-04-08 11:19:40 +03:00
ieee802_11_auth.h VLAN: Separate station grouping and uplink configuration 2016-02-17 11:46:11 +02:00
ieee802_11_ht.c Fix CSA related IEs order 2015-10-03 21:01:47 +03:00
ieee802_11_shared.c FILS: Separate FILS realm configuration from ERP domain 2016-12-17 22:08:23 +02:00
ieee802_11_vht.c hostapd: Use stations nsts capability in (Re)Association Response frame 2016-09-05 21:14:40 +03:00
Makefile Fix libap.a build 2016-11-16 13:26:23 +02:00
mbo_ap.c MBO: Do not parse reason_detail in non_pref_chan attr (AP) 2016-09-25 17:31:26 +03:00
mbo_ap.h MBO: Parse non-preferred channel list on the AP 2016-02-22 21:17:38 +02:00
ndisc_snoop.c ndisc_snoop: Include ndisc_snoop.h to check prototypes 2016-06-24 19:02:58 +03:00
ndisc_snoop.h proxyarp: Use C library header files and CONFIG_IPV6 2014-11-25 16:58:21 +02:00
neighbor_db.c hostapd: Add a configuration to set an AP as stationary 2016-10-29 19:16:47 +03:00
neighbor_db.h hostapd: Add a configuration to set an AP as stationary 2016-10-29 19:16:47 +03:00
p2p_hostapd.c Use P2P_IE_VENDOR_TYPE more consistently 2014-03-05 23:36:54 +02:00
p2p_hostapd.h
peerkey_auth.c PeerKey: Clean up EAPOL-Key Key Data processing on AP 2014-11-23 21:03:40 +02:00
pmksa_cache_auth.c mesh: Add MESH_PMKSA_GET/ADD commands 2017-01-14 18:07:46 +02:00
pmksa_cache_auth.h mesh: Add MESH_PMKSA_GET/ADD commands 2017-01-14 18:07:46 +02:00
preauth_auth.c
preauth_auth.h
rrm.c Report received beacon report with BEACON-RESP-RX event 2017-01-03 16:02:58 +02:00
rrm.h Report beacon request TX status as control interface event 2017-01-03 16:02:58 +02:00
sta_info.c FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
sta_info.h FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
taxonomy.c Fix or supress various sparse warnings 2017-01-29 18:33:10 +02:00
taxonomy.h taxonomy: Store Probe Request frames in hostapd_sta_info 2016-09-22 00:45:24 +03:00
tkip_countermeasures.c
tkip_countermeasures.h
utils.c FST: Do not prune STAs belonging to the same FST 2015-07-16 18:26:15 +03:00
vlan.c VLAN: Fix vlan_compare() for tagged VLANs 2016-02-22 19:53:05 +02:00
vlan.h radius: Add tagged VLAN parsing 2016-02-17 11:46:13 +02:00
vlan_full.c Use a separate header file for Linux bridge interface definitions 2016-03-26 11:27:18 +02:00
vlan_ifconfig.c vlan: Move if_nametoindex() use out of vlan_init.c 2016-03-25 18:00:44 +02:00
vlan_init.c vlan: Move if_nametoindex() use out of vlan_init.c 2016-03-25 18:00:44 +02:00
vlan_init.h VLAN: Separate station grouping and uplink configuration 2016-02-17 11:46:11 +02:00
vlan_ioctl.c Use own header file for defining Linux VLAN kernel interface 2016-03-26 11:24:38 +02:00
vlan_util.c vlan: Remove unnecessary header includes from netlink implementation 2016-03-25 17:27:16 +02:00
vlan_util.h vlan: Move if_nametoindex() use out of vlan_init.c 2016-03-25 18:00:44 +02:00
wmm.c AP WMM: Fix integer underflow in WMM Action frame parser 2015-05-03 18:26:50 +03:00
wmm.h
wnm_ap.c WNM: Fix a memory leak on AP error path 2016-02-22 19:53:05 +02:00
wnm_ap.h hostapd: Add MBO IE to BSS Transition Management Request frame 2016-02-22 19:53:04 +02:00
wpa_auth.c FILS: Fix AES-SIV AAD for (Re)Association Request frame decryption 2017-02-04 13:09:52 +02:00
wpa_auth.h FILS: DHCP relay for HLP requests 2017-02-01 18:17:39 +02:00
wpa_auth_ft.c wpa_auth: Make struct wpa_auth_callbacks const 2017-01-29 18:41:26 +02:00
wpa_auth_glue.c wpa_auth: Make struct wpa_auth_callbacks const 2017-01-29 18:41:26 +02:00
wpa_auth_glue.h
wpa_auth_i.h wpa_auth: Make struct wpa_auth_callbacks const 2017-01-29 18:41:26 +02:00
wpa_auth_ie.c FT: Explicitly check for MDE not present in non-FT association 2016-11-26 11:39:44 +02:00
wpa_auth_ie.h FT: Differentiate between FT for station and for AP in build 2016-10-29 22:14:54 +03:00
wps_hostapd.c Share a single str_starts() implementation 2016-08-06 12:38:21 +03:00
wps_hostapd.h WPS NFC: Add AP mode connection handover report 2014-01-27 21:10:55 +02:00
x_snoop.c AP: Enable multicast snooping on bridge if ProxyARP IPv6 is in use 2015-04-13 14:00:32 +03:00
x_snoop.h AP: Add multicast-to-unicast conversion send for "x_snoop" 2014-11-19 16:25:13 +02:00