mt76: connac: add support for passing the cipher field in bss_info
authorFelix Fietkau <nbd@nbd.name>
Wed, 29 Dec 2021 11:19:37 +0000 (12:19 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:58 +0000 (13:57 +0100)
Initialize it from a field in struct mt76_vif

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

index 4accfb5..14f60fc 100644 (file)
@@ -622,6 +622,7 @@ struct mt76_vif {
        u8 band_idx;
        u8 wmm_idx;
        u8 scan_seq_num;
+       u8 cipher;
 };
 
 struct mt76_phy {
index 1b2340e..cdd82a6 100644 (file)
@@ -2701,6 +2701,7 @@ int mt76_connac_mcu_bss_basic_tlv(struct sk_buff *skb,
        bss->bmc_wcid_hi = to_wcid_hi(wlan_idx);
        bss->wmm_idx = mvif->wmm_idx;
        bss->active = enable;
+       bss->cipher = mvif->cipher;
 
        if (vif->type != NL80211_IFTYPE_MONITOR) {
                struct cfg80211_chan_def *chandef = &phy->chandef;