aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib/wifi
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-03-18 12:59:44 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-03-18 12:59:44 +0000
commit677b02a25042312cc9d67524ebe9cac95f9cd7ee (patch)
treebc32620867c7e16740b2bea8a1bb5a233f8e9f6b /package/madwifi/files/lib/wifi
parent6eb218b9c979ddb0f078c733bffacd92e1da8c01 (diff)
downloadupstream-677b02a25042312cc9d67524ebe9cac95f9cd7ee.tar.gz
upstream-677b02a25042312cc9d67524ebe9cac95f9cd7ee.tar.bz2
upstream-677b02a25042312cc9d67524ebe9cac95f9cd7ee.zip
Add bssid fix from #1281
SVN-Revision: 6601
Diffstat (limited to 'package/madwifi/files/lib/wifi')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 1af4ce3bf5..2fd839a283 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -140,6 +140,12 @@ enable_atheros() {
*)
config_get ssid "$vif" ssid
;;
+ adhoc)
+ config_get addr "$vif" bssid
+ [ -z "$addr" ] || {
+ iwconfig "$ifname" ap "$addr"
+ }
+ ;;
esac
[ "$mode" = "sta" ] && {