Userspace MLME in wpa_supplicant

Annu Myllyniemi annu.myllyniemi
Fri Nov 16 05:28:56 PST 2007


I am quite new to WiFi and wpa_supplicant, and have been trying to enable management frame handling 
in my wpa_supplicant-based application. I've been using the MadWifi driver, but started 
experimenting with DadWifi today.

My question is: what would be the best (easiest) way to enable userspace MLME in wpa_supplicant? At 
the moment I get the following compilation errors when I try to compile wpa_supplicant with the 
configuration option CONFIG_CLIENT_MLME=y:

driver_wext.c:37:27: warning: hostapd_ioctl.h: No such file or directory
driver_wext.c:38:30: warning: ieee80211_common.h: No such file or directory
driver_wext.c:2033: warning: 'struct prism2_hostapd_param' declared inside parameter list
driver_wext.c:2033: warning: its scope is only this definition or declaration, which is probably not 
what you want
driver_wext.c: In function 'hostapd_ioctl':
driver_wext.c:2042: error: 'PRISM2_IOCTL_HOSTAPD' undeclared (first use in this function)
driver_wext.c:2042: error: (Each undeclared identifier is reported only once
driver_wext.c:2042: error: for each function it appears in.)
driver_wext.c: In function 'wpa_driver_wext_get_hw_feature_data':
driver_wext.c:2060: error: 'PRISM2_HOSTAPD_MAX_BUF_SIZE' undeclared (first use in this function)
driver_wext.c:2063: error: dereferencing pointer to incomplete type
driver_wext.c:2063: error: 'PRISM2_HOSTAPD_GET_HW_FEATURES' undeclared (first use in this function)
driver_wext.c:2065: warning: passing argument 2 of 'hostapd_ioctl' from incompatible pointer type
driver_wext.c:2070: error: dereferencing pointer to incomplete type
driver_wext.c:2071: error: dereferencing pointer to incomplete type
driver_wext.c:2073: error: dereferencing pointer to incomplete type
driver_wext.c:2075: error: dereferencing pointer to incomplete type
driver_wext.c:2087: error: invalid use of undefined type 'struct hostapd_ioctl_hw_modes_hdr'
driver_wext.c:2088: error: dereferencing pointer to incomplete type
driver_wext.c:2089: error: dereferencing pointer to incomplete type
driver_wext.c:2092: error: dereferencing pointer to incomplete type
driver_wext.c:2105: error: dereferencing pointer to incomplete type
driver_wext.c:2110: error: dereferencing pointer to incomplete type
driver_wext.c:2115: error: dereferencing pointer to incomplete type
driver_wext.c:2116: error: dereferencing pointer to incomplete type
driver_wext.c: In function 'wpa_driver_wext_mlme_read':
driver_wext.c:2165: error: invalid application of 'sizeof' to incomplete type 'struct 
ieee80211_frame_info'
driver_wext.c:2171: warning: type-punning to incomplete type might break strict-aliasing rules
driver_wext.c:2172: error: dereferencing pointer to incomplete type
driver_wext.c:2172: error: 'IEEE80211_FI_VERSION' undeclared (first use in this function)
driver_wext.c:2174: error: dereferencing pointer to incomplete type
driver_wext.c:2179: error: dereferencing pointer to incomplete type
driver_wext.c:2180: error: dereferencing pointer to incomplete type
driver_wext.c:2182: error: invalid application of 'sizeof' to incomplete type 'struct 
ieee80211_frame_info'
driver_wext.c:2183: error: invalid application of 'sizeof' to incomplete type 'struct 
ieee80211_frame_info'
driver_wext.c: In function 'wpa_driver_wext_open_mlme':
driver_wext.c:2197: error: 'PRISM2_PARAM_USER_SPACE_MLME' undeclared (first use in this function)
driver_wext.c:2200: error: 'PRISM2_IOCTL_PRISM2_PARAM' undeclared (first use in this function)
driver_wext.c: In function 'wpa_driver_wext_mlme_add_sta':
driver_wext.c:2269: error: storage size of 'param' isn't known
driver_wext.c:2273: error: 'PRISM2_HOSTAPD_ADD_STA' undeclared (first use in this function)
driver_wext.c:2269: warning: unused variable 'param'
driver_wext.c: In function 'wpa_driver_wext_mlme_remove_sta':
driver_wext.c:2286: error: storage size of 'param' isn't known
driver_wext.c:2289: error: 'PRISM2_HOSTAPD_REMOVE_STA' undeclared (first use in this function)
driver_wext.c:2286: warning: unused variable 'param'
make: *** [driver_wext.o] Error 1

Any hints?

Regards,
Annu Myllyniemi




More information about the Hostap mailing list