mac80211: select the first available channel for 5GHz interfaces
authorDavide Fioravanti <pantanastyle@gmail.com>
Thu, 17 Sep 2020 13:40:27 +0000 (15:40 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 20 Sep 2020 15:52:25 +0000 (17:52 +0200)
commitcd36c0d2f093ec6b8a2c6e9b7b300a2fd4fc87b3
treefbbac59cdca3a350d7be592b434fbead0d4e9ca0
parent7190fb2da46bca02c233432db2cad57655208b68
mac80211: select the first available channel for 5GHz interfaces

Some 5GHz wifi interfaces, especially in Tri-band routers, can't use
channel 36. In these cases, the default configuration for 5GHz
interfaces, once enabled, doesn't work.

This patch selects the first non-disabled channel for 5GHz interfaces.

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
package/kernel/mac80211/files/lib/wifi/mac80211.sh