80211 patch1
Thomas Schlesinger
schlesinger at netcologne.de
Mon Apr 17 03:10:42 PDT 2006
Am Montag, 17. April 2006 03:37 schrieb Sepherosa Ziehau:
<snip>
>
> My fault, missing a crit_enter(), please change
> sys/dev/netif/iwi/if_iwi.c
> iwi_load_firmware()
> near these lines:
> ....
> CSR_WRITE_4(sc, IWI_CSR_CTL, tmp | IWI_CTL_ALLOW_STANDBY);
>
> /* wait at most one second for firmware initialization to complete */
> crit_enter(); <========= add me
> tsleep_interlock(IWI_FW_INITIALIZED(sc));
> lwkt_serialize_exit(ifp->if_serializer);
> ....
>
> And give it a try again, thanks
>
> Best Regards,
> sephe
>
Sepherosa,
how do I build the wpa_supplicant?
I've downloaded http://leaf.dragonflybsd.org/~sephe/wpa/wpa_supp/ and
http://leaf.dragonflybsd.org/~sephe/wpa/wpa_supplicant/ under an common
directory. Then, I've cd'd into wpa_supp and did a make. That's the ouput:
SchlesisNB# make
Warning: Object directory not changed from
original /home/thomas/Downloads/WPA/wpa_supp
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/config.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/eloop.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/common.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/md5.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/rc4.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/sha1.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/aes_wrap.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/wpa_supplicant.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/events.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/wpa.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/preauth.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/ctrl_iface.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c
l2_packet.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/main.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c /home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant/drivers.c
cc -O -pipe -mtune=pentiumpro -I/home/thomas/Downloads/WPA/wpa_supp -I/home/thomas/Downloads/WPA/wpa_supp/../wpa_supplicant -DCONFIG_DRIVER_BSD -DCONFIG_DRIVER_NDIS -DCONFIG_CTRL_IFACE -g -DCONFIG_BACKEND_FILE -DIEEE8021X_EAPOL -DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK -DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TTLS -DEAP_MD5 -c
driver_freebsd.c
driver_freebsd.c: In function `wpa_driver_bsd_get_bssid':
driver_freebsd.c:160: error: `IEEE80211_IOC_BSSID' undeclared (first use in
this function)
driver_freebsd.c:160: error: (Each undeclared identifier is reported only once
driver_freebsd.c:160: error: for each function it appears in.)
driver_freebsd.c: In function `wpa_driver_bsd_set_wpa_ie':
driver_freebsd.c:197: error: `IEEE80211_IOC_OPTIE' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_set_wpa_internal':
driver_freebsd.c:211: error: `IEEE80211_IOC_PRIVACY' undeclared (first use in
this function)
driver_freebsd.c:213: error: `IEEE80211_IOC_WPA' undeclared (first use in this
function)
driver_freebsd.c: In function `wpa_driver_bsd_del_key':
driver_freebsd.c:231: error: storage size of 'wk' isn't known
driver_freebsd.c:242: error: `IEEE80211_KEYIX_NONE' undeclared (first use in
this function)
driver_freebsd.c:247: error: `IEEE80211_IOC_DELKEY' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_set_key':
driver_freebsd.c:257: error: storage size of 'wk' isn't known
driver_freebsd.c:268: error: `IEEE80211_CIPHER_WEP' undeclared (first use in
this function)
driver_freebsd.c:272: error: `IEEE80211_CIPHER_TKIP' undeclared (first use in
this function)
driver_freebsd.c:276: error: `IEEE80211_CIPHER_AES_CCM' undeclared (first use
in this function)
driver_freebsd.c:303: error: `IEEE80211_KEY_RECV' undeclared (first use in
this function)
driver_freebsd.c:305: error: `IEEE80211_KEY_XMIT' undeclared (first use in
this function)
driver_freebsd.c:313: error: `IEEE80211_KEY_GROUP' undeclared (first use in
this function)
driver_freebsd.c:316: error: `IEEE80211_KEYIX_NONE' undeclared (first use in
this function)
driver_freebsd.c:319: error: `IEEE80211_KEY_DEFAULT' undeclared (first use in
this function)
driver_freebsd.c:324: error: `IEEE80211_IOC_WPAKEY' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_set_countermeasures':
driver_freebsd.c:333: error: `IEEE80211_IOC_COUNTERMEASURES' undeclared (first
use in this function)
driver_freebsd.c: In function `wpa_driver_bsd_set_drop_unencrypted':
driver_freebsd.c:343: error: `IEEE80211_IOC_DROPUNENCRYPTED' undeclared (first
use in this function)
driver_freebsd.c: In function `wpa_driver_bsd_deauthenticate':
driver_freebsd.c:350: error: storage size of 'mlme' isn't known
driver_freebsd.c:354: error: `IEEE80211_MLME_DEAUTH' undeclared (first use in
this function)
driver_freebsd.c:357: error: `IEEE80211_IOC_MLME' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_disassociate':
driver_freebsd.c:364: error: storage size of 'mlme' isn't known
driver_freebsd.c:368: error: `IEEE80211_MLME_DISASSOC' undeclared (first use
in this function)
driver_freebsd.c:371: error: `IEEE80211_IOC_MLME' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_associate':
driver_freebsd.c:378: error: storage size of 'mlme' isn't known
driver_freebsd.c:401: error: `IEEE80211_IOC_PRIVACY' undeclared (first use in
this function)
driver_freebsd.c:405: error: `IEEE80211_IOC_WPA' undeclared (first use in this
function)
driver_freebsd.c:410: error: `IEEE80211_MLME_ASSOC' undeclared (first use in
this function)
driver_freebsd.c:416: error: `IEEE80211_IOC_MLME' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_set_auth_alg':
driver_freebsd.c:429: error: `IEEE80211_AUTH_AUTO' undeclared (first use in
this function)
driver_freebsd.c: In function `wpa_driver_bsd_scan':
driver_freebsd.c:453: error: `IEEE80211_IOC_SCAN_REQ' undeclared (first use in
this function)
driver_freebsd.c:457:49: netproto/802_11/ieee80211_dragonfly.h: No such file
or directory
driver_freebsd.c: In function `wpa_driver_bsd_event_receive':
driver_freebsd.c:504: error: `RTM_IEEE80211' undeclared (first use in this
function)
driver_freebsd.c:509: error: `RTM_IEEE80211_ASSOC' undeclared (first use in
this function)
driver_freebsd.c:510: error: `RTM_IEEE80211_REASSOC' undeclared (first use in
this function)
driver_freebsd.c:513: error: `RTM_IEEE80211_DISASSOC' undeclared (first use in
this function)
driver_freebsd.c:516: error: `RTM_IEEE80211_SCAN' undeclared (first use in
this function)
driver_freebsd.c:519: error: `RTM_IEEE80211_REPLAY' undeclared (first use in
this function)
driver_freebsd.c:522: error: `RTM_IEEE80211_MICHAEL' undeclared (first use in
this function)
driver_freebsd.c:526: error: dereferencing pointer to incomplete type
driver_freebsd.c:527: error: dereferencing pointer to incomplete type
driver_freebsd.c:527: error: dereferencing pointer to incomplete type
driver_freebsd.c:527: error: dereferencing pointer to incomplete type
driver_freebsd.c:527: error: dereferencing pointer to incomplete type
driver_freebsd.c:527: error: dereferencing pointer to incomplete type
driver_freebsd.c:527: error: dereferencing pointer to incomplete type
driver_freebsd.c:531: error: dereferencing pointer to incomplete type
driver_freebsd.c: In function `wpa_driver_bsd_get_scan_results':
driver_freebsd.c:629: error: `IEEE80211_IOC_SCAN_RESULTS' undeclared (first
use in this function)
driver_freebsd.c:634: error: invalid application of `sizeof' to incomplete
type `ieee80211req_scan_result'
driver_freebsd.c:636: error: dereferencing pointer to incomplete type
driver_freebsd.c:637: error: dereferencing pointer to incomplete type
driver_freebsd.c:638: error: dereferencing pointer to incomplete type
driver_freebsd.c:639: error: dereferencing pointer to incomplete type
driver_freebsd.c:640: error: dereferencing pointer to incomplete type
driver_freebsd.c:642: error: dereferencing pointer to incomplete type
driver_freebsd.c:643: error: dereferencing pointer to incomplete type
driver_freebsd.c:643: error: dereferencing pointer to incomplete type
driver_freebsd.c:644: error: invalid use of undefined type `struct
ieee80211req_scan_result'
driver_freebsd.c:645: error: dereferencing pointer to incomplete type
driver_freebsd.c:646: error: dereferencing pointer to incomplete type
driver_freebsd.c:647: error: dereferencing pointer to incomplete type
driver_freebsd.c:648: error: dereferencing pointer to incomplete type
driver_freebsd.c:658: error: `IEEE80211_ELEMID_RSN' undeclared (first use in
this function)
driver_freebsd.c:669: error: dereferencing pointer to incomplete type
driver_freebsd.c:669: error: dereferencing pointer to incomplete type
driver_freebsd.c: In function `wpa_driver_bsd_init':
driver_freebsd.c:717: error: `IEEE80211_IOC_ROAMING' undeclared (first use in
this function)
driver_freebsd.c:722: error: `IEEE80211_IOC_PRIVACY' undeclared (first use in
this function)
driver_freebsd.c:727: error: `IEEE80211_IOC_WPA' undeclared (first use in this
function)
driver_freebsd.c:732: error: `IEEE80211_ROAMING_MANUAL' undeclared (first use
in this function)
driver_freebsd.c: In function `wpa_driver_bsd_deinit':
driver_freebsd.c:764: error: `IEEE80211_IOC_ROAMING' undeclared (first use in
this function)
*** Error code 1
Stop in /home/thomas/Downloads/WPA/wpa_supp.
What's the right way to build wpa_supplicant?
Thomas
More information about the Users
mailing list