omap35xx: Add temporary fix for marvell wlan MAC address detection
authorHamish Guthrie <hcg@openwrt.org>
Wed, 4 Aug 2010 10:10:48 +0000 (10:10 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Wed, 4 Aug 2010 10:10:48 +0000 (10:10 +0000)
SVN-Revision: 22477

target/linux/omap35xx/gumstix/base-files/lib/wifi/mac80211.sh

index 53910efcd31f69087bfe7b033f9ce977060e1313..2c1625ba8c8a76ebf6f5b67f33dac008629d1411 100644 (file)
@@ -417,7 +417,7 @@ detect_mac80211() {
 config wifi-device  radio$devidx
        option type     mac80211
        option channel  ${channel}
-       option macaddr  $(cat /sys/class/ieee80211/${dev}/macaddress)
+       option macaddr  $(cat /sys/class/net/wlan0/address)
        option hwmode   11${mode_11n}${mode_band}
 $ht_capab
        # REMOVE THIS LINE TO ENABLE WIFI:
@@ -426,7 +426,7 @@ $ht_capab
 config wifi-iface
        option device   radio$devidx
        option network  lan
-       option mode     ap
+       option mode     sta
        option ssid     OpenWrt
        option encryption none