[package] madwifi: change wireless ifname numbering schema
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 6 Nov 2011 19:57:07 +0000 (19:57 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 6 Nov 2011 19:57:07 +0000 (19:57 +0000)
commitf0eb2383b89fe0a7f4c4ca627b65d7ccc9c153c7
tree2335a51c29a0f47f4161d878c94fc451df78d148
parentbeaaca872bba5ecd33c002d424214d10ae773f84
[package] madwifi: change wireless ifname numbering schema
Instead of simply counting up until we hit a free iface, group ifnames by wiphy so that the first wlanX on a phy gets the phy number
and following ifaces an index-suffix, e.g. ath0 for network 1 on phy 1 and ath0-1 for network 2 on phy 1.
This fixes state var confusion when operating multiple radios and allows to reliably take down and restart one radio only, even if
the number of networks changes in between. This should, along with other changes in LuCI, fix #10335.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28785 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/madwifi/files/lib/wifi/madwifi.sh