meta-digi-del: set correct WPA driver depending on the machine

This fixes a bug in 'ccardxmx28js' where the wpa_supplicant was using
the wrong driver 'wext' instead of the 'nl80211' (for atheros)

https://jira.digi.com/browse/DEL-220 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-01-31 13:53:18 +01:00
parent 1f3cc3eb1f
commit 452abcf9de
2 changed files with 6 additions and 1 deletions

View File

@ -15,3 +15,6 @@ EXTRA_IMAGEDEPENDS = "u-boot"
# At the moment it's failing due to wrong u-boot image
IMAGE_FSTYPES ?= "tar.bz2"
IMAGE_FSTYPES += "sum.jffs2 ubifs"
# wpa_supplicant driver to use in '/etc/network/interfaces'
WPA_DRIVER = "nl80211"

View File

@ -6,6 +6,8 @@ DEPENDS="virtual/kernel"
SRC_URI += "file://ifup"
WPA_DRIVER ?= "wext"
do_install_append(){
install -m 0755 ${WORKDIR}/ifup ${D}${sysconfdir}/network/if-up.d
}
@ -69,7 +71,7 @@ iface wlan0 inet static
network 192.168.43.0
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-driver ${WPA_DRIVER}
wpa-conf /etc/wpa_supplicant.conf
EOF