wpa_supplicant 0.6.6 Compiling the Broadcom backend errors.

Thorben J tj.trevelyan
Wed Jan 28 02:19:49 PST 2009


Hi,

I'm trying to build wpa_supplicant with the broadcom wl.ko driver.
I am using the 64bit kernel module from here
http://www.broadcom.com/support/802.11/linux_sta.php
(version 5.10.27.14 1/21/2009)

In my config I have:
CONFIG_DRIVER_BROADCOM=y
CFLAGS += -I/home/thorbenj/Build/broadcom/src/include

This gives the following build error:
cc -Wall -g -O2 -MMD -I../src -I../src/crypto -I../src/utils
-I../src/common -I../src/rsn_supp
-I/home/thorbenj/Build/broadcom/src/include -DCONFIG_BACKEND_FILE
-DCONFIG_DRIVER_WEXT -DCONFIG_DRIVER_ATMEL -DCONFIG_DRIVER_BROADCOM
-DCONFIG_DRIVER_WIRED -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MD5
-DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP -DEAP_SIM -DEAP_LEAP -DEAP_PSK
-DEAP_AKA -DEAP_PAX -DIEEE8021X_EAPOL -DPCSC_FUNCS -I/usr/include/PCSC
-DEAP_TLS_FUNCS -DEAP_TLS_OPENSSL -DPKCS12_FUNCS -DCONFIG_SMARTCARD
-DINTERNAL_SHA256 -DCONFIG_IEEE80211W -DNEED_SHA256
-DCONFIG_WIRELESS_EXTENSION -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
-DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-DDBUS_VERSION_MAJOR=1 -DDBUS_VERSION_MINOR=2 -DCONFIG_READLINE
-DCONFIG_PEERKEY -DCONFIG_IEEE80211R -DCONFIG_NO_T_PRF
-DCONFIG_DEBUG_FILE -DCONFIG_DELAYED_MIC_ERROR_REPORT   -c -o
../src/drivers/driver_broadcom.o ../src/drivers/driver_broadcom.c
In file included from ../src/drivers/driver.h:20,
                 from ../src/drivers/driver_broadcom.c:36:
../src/common/defs.h:27:1: warning: "WPA_CIPHER_NONE" redefined
In file included from
/home/thorbenj/Build/broadcom/src/include/proto/802.11.h:39,
                 from
/home/thorbenj/Build/broadcom/src/include/wlioctl.h:38,
                 from ../src/drivers/driver_broadcom.c:34:
/home/thorbenj/Build/broadcom/src/include/proto/wpa.h:107:1: warning:
this is the location of the previous definition
In file included from ../src/drivers/driver.h:20,
                 from ../src/drivers/driver_broadcom.c:36:
../src/common/defs.h:30:1: warning: "WPA_CIPHER_TKIP" redefined
In file included from
/home/thorbenj/Build/broadcom/src/include/proto/802.11.h:39,
                 from
/home/thorbenj/Build/broadcom/src/include/wlioctl.h:38,
                 from ../src/drivers/driver_broadcom.c:34:
/home/thorbenj/Build/broadcom/src/include/proto/wpa.h:109:1: warning:
this is the location of the previous definition
../src/drivers/driver_broadcom.c: In function
?wpa_driver_broadcom_event_receive?:
../src/drivers/driver_broadcom.c:229: error: ?wl_wpa_header_t?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c:229: error: (Each undeclared identifier
is reported only once
../src/drivers/driver_broadcom.c:229: error: for each function it
appears in.)
../src/drivers/driver_broadcom.c:229: error: ?wwh? undeclared (first use
in this function)
../src/drivers/driver_broadcom.c:240: error: expected expression before
?)? token
../src/drivers/driver_broadcom.c:242: error: ?WL_WPA_ETHER_TYPE?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c:244: error: ?wl_wpa_snap_template?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c:250: error: ?WLC_ASSOC_MSG? undeclared
(first use in this function)
../src/drivers/driver_broadcom.c:251: error: ?WL_WPA_HEADER_LEN?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c:271: error: ?WLC_DISASSOC_MSG?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c:275: error: ?WLC_PTK_MIC_MSG?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c:280: error: ?WLC_GTK_MIC_MSG?
undeclared (first use in this function)
../src/drivers/driver_broadcom.c: In function
?wpa_driver_broadcom_get_scan_results?:
../src/drivers/driver_broadcom.c:465: error: ?wl_bss_info_t? has no
member named ?channel?
../src/drivers/driver_broadcom.c: In function
?wpa_driver_broadcom_associate?:
../src/drivers/driver_broadcom.c:574: error: ?WLC_GET_WEP? undeclared
(first use in this function)
../src/drivers/driver_broadcom.c:577: error: ?WLC_SET_WEP? undeclared
(first use in this function)


Is there a patch for this?
I found this bug report which looks like the same bug
http://hostap.epitest.fi/bugz/show_bug.cgi?id=282

I note it lacked a link to the Broadcom driver download (above) which
might help with reproducing this error.

Regards

Thorben




More information about the Hostap mailing list