Am Sonntag 11 Juli 2010, 02:07:20 schrieb Felix Fietkau:
> On 2010-07-11 12:22 AM, Patrick Grimm wrote:
> > Hi
> >
> > I have attached the config from my setup.
> > The follow Patch rename the default interface name from wl0 to wlan0 and
> > add
>
> Erm... why?
I am of the opinion that all interfaces wifi (broadcom, madwifi, ath9k) should
have the same name eg wlan0. Here is the config with this patch.
# uci show wireless
wireless.wlan0=wifi-device
wireless.wlan0.type=broadcom
wireless.wlan0.channel=4
wireless.wlan0.disabled=0
wireless.wlan0.distance=2000
wireless.wlan0.country=DE
wireless.wlan0.txpower=16
wireless.wlan0.txantenna=0
wireless.wlan0.rxantenna=0
wirele...@wifi-iface[0]=wifi-iface
wirele...@wifi-iface[0].device=wl0
wirele...@wifi-iface[0].encryption=none
wirele...@wifi-iface[0].ssid=kiezfunk.freifunk.net
wirele...@wifi-iface[0].network=wlan0
wirele...@wifi-iface[0].mode=adhoc
wirele...@wifi-iface[0].bssid=42:CA:FF:EE:BA:BE
wirele...@wifi-iface[0].rate=12
> That part looks completely wrong. If your config had used
> this change, it wouldn't even have worked, since it the wifi-iface would
> have referred to a nonexistant wifi-device.
>
> > wl* to return 0 in the hotplug.d net config.
>
> That makes more sense.
OK I have split the Patch.
>
> > That is testet with backfire branch and wrt54gl and WHR-G54S.
>
> Are you sure about that? The config that you posted doesn't seem to be
> based on that change.
Yes sure. Rename the wl0 interface to wlan0 in uci is the only way for the
user to fix this problem. See the config above.
Greetings
Patrick
Index: package/base-files/files/etc/hotplug.d/net/10-net
===================================================================
--- package/base-files/files/etc/hotplug.d/net/10-net (Revision 21942)
+++ package/base-files/files/etc/hotplug.d/net/10-net (Arbeitskopie)
@@ -14,6 +14,7 @@
ppp*|3g-*) return 0;;
ath*) return 0;;
wlan*) return 0;;
+ wl*) return 0;;
esac
scan_interfaces
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel