Il Saturday 26 January 2008 17:15:31 hai scritto:
> Changed rxant and txant to rxantenna and txantenna (as docs say).
> Delayed the execution of wlc rxant ${rxant} and wlc txant ${txant}... I
> don't know why, but you have to wait some seconds before applying those
> settings with wlc, otherwise it won't work.

There was an error with file paths.
Index: package/broadcom-wl/files/lib/wifi/broadcom.sh
===================================================================
--- package/broadcom-wl/files/lib/wifi/broadcom.sh	(revisione 10260)
+++ package/broadcom-wl/files/lib/wifi/broadcom.sh	(copia locale)
@@ -95,8 +95,8 @@
 	config_get vifs "$device" vifs
 	config_get distance "$device" distance
 	config_get slottime "$device" slottime
-	config_get rxant "$device" rxant
-	config_get txant "$device" txant
+	config_get rxant "$device" rxantenna
+	config_get txant "$device" txantenna
 	config_get macfilter "$device" macfilter
 	config_get maclist "$device" maclist
 	local vif_pre_up vif_post_up vif_do_up
@@ -240,8 +240,6 @@
 ${wet:+wet 1}
 802.11d 0
 802.11h 0
-rxant ${rxant:-3}
-txant ${txant:-3}
 
 radio ${radio:-1}
 macfilter ${macfilter:-0}
@@ -262,6 +260,9 @@
 $vif_do_up
 EOF
 	eval "$nas_cmd"
+
+	#workaround for txantenna and rxantenna settings
+	(sleep 15s; wlc rxant ${rxant:-3}; wlc txant ${txant:-3}) &
 }
 
 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to