Introduce mac80211 {set,get}_antenna callbacks to configure {tx,rx} antennas used by the device. Possible values are: - 1: to use only the primary antenna - 2: to use only the secondary antenna - 3: to use both of them Lorenzo Bianconi (3): mt76: initialize available_antennas_{tx,rx} info mt76: add mt76_init_stream_cap routine mt76x2: add mac80211 {set,get}_antenna callbacks drivers/net/wireless/mediatek/mt76/mac80211.c | 68 ++++++++++++++++++------ drivers/net/wireless/mediatek/mt76/mt76.h | 3 ++ drivers/net/wireless/mediatek/mt76/mt76x2.h | 1 + drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 3 ++ drivers/net/wireless/mediatek/mt76/mt76x2_main.c | 36 +++++++++++++ drivers/net/wireless/mediatek/mt76/mt76x2_phy.c | 55 +++++++++++++------ drivers/net/wireless/mediatek/mt76/mt76x2_regs.h | 2 + 7 files changed, 135 insertions(+), 33 deletions(-) -- 2.16.2