r1803

stsp at dslinux.in-berlin.de stsp at dslinux.in-berlin.de
Sun Jun 24 12:03:27 CEST 2007


Author: stsp
Date: 2007-06-24 12:03:22 +0200 (Sun, 24 Jun 2007)
New Revision: 1803

Log:
Quick workaround for channel detection bug in wifi driver.
Not pretty but better than nothing.

Quoting THE man:
<pepsiman> do the quick fix in the shell script
<pepsiman> the proper fix where it scans all channels until
           it finds the requested AP is too hard


Modified: trunk/vendors/Nintendo/common/rc.d/network
===================================================================
--- trunk/vendors/Nintendo/common/rc.d/network	2007-06-24 09:27:32 UTC (rev 1802)
+++ trunk/vendors/Nintendo/common/rc.d/network	2007-06-24 10:03:22 UTC (rev 1803)
@@ -20,17 +20,23 @@
 		if [ -n "$essid" ]
 		then
 			echo "Configuring wireless interface:"
-			echo "ESSID:    $essid"
-			iwconfig nds essid "$essid"
-			sleep 1
-			
+
 			if [ -n "$channel" ]
 			then 
 				echo "Channel:  $channel"
 				iwconfig nds channel "$channel"
 				sleep 1
+			else
+				echo "Starting AP scan (channel detection)"
+				ifconfig nds up
+				sleep 1
+				iwlist scan nds >/dev/null 2>/dev/null
 			fi
 
+			echo "ESSID:    $essid"
+			iwconfig nds essid "$essid"
+			sleep 1
+
 			if [ -n "$wepkey" ]
 			then
 				echo "Setting wepkey."




More information about the dslinux-commit mailing list