mt76: mt7615: add support for registering a second wiphy via debugfs
authorFelix Fietkau <nbd@nbd.name>
Wed, 30 Oct 2019 22:27:48 +0000 (23:27 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:05:59 +0000 (10:05 +0100)
commit0f2173f093b3f62cd21eda32019b059cdcd0d11f
tree1fa7405dcffcc921759f181d3edce9d80404c1b7
parent9ce2f7fa94c1c5ce3859fdfa307c3951b233b2c7
mt76: mt7615: add support for registering a second wiphy via debugfs

This is only used for testing for now. In the future it will be possible to
enable the second PHY through an proper API via device tree

Running:
 echo 1 > /sys/kernel/debug/ieee80211/phyX/mt76/dbdc

will register a second wiphy (and limit the primary one to 2 spatial streams).
The second wiphy will only be able to run on 5 GHz, while the primary one can
operate in both bands (if supported by the device).

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h