]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mt76: add ext_phy field to struct mt76_wcid
authorFelix Fietkau <nbd@nbd.name>
Mon, 4 Nov 2019 14:16:59 +0000 (15:16 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:03:10 +0000 (10:03 +0100)
Will be used to determine the phy from within the driver

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

index 97362a0907a6fe23cdd717082e08d9bb5c5748c3..76ae2992511af8bce22746101ff2a4ad424ed332 100644 (file)
@@ -953,6 +953,7 @@ mt76_sta_add(struct mt76_dev *dev, struct ieee80211_vif *vif,
        ewma_signal_init(&wcid->rssi);
        if (ext_phy)
                mt76_wcid_mask_set(dev->wcid_phy_mask, wcid->idx);
+       wcid->ext_phy = ext_phy;
        rcu_assign_pointer(dev->wcid[wcid->idx], wcid);
 
 out:
index 9afae5cc837c15275e9820677fb60cb77aa5ac43..4e1aaae2164ff2f0a840bfc89bc77a09c01d0cd4 100644 (file)
@@ -200,6 +200,7 @@ struct mt76_wcid {
        u8 hw_key_idx;
 
        u8 sta:1;
+       u8 ext_phy:1;
 
        u8 rx_check_pn;
        u8 rx_key_pn[IEEE80211_NUM_TIDS][6];