mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: connac: add support for passing connection state directly
Preparation for improvements to sta handling. No functional changes. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+3
-1
@@ -847,6 +847,7 @@ mt7615_mcu_wtbl_sta_add(struct mt7615_phy *phy, struct ieee80211_vif *vif,
|
||||
struct wtbl_req_hdr *wtbl_hdr;
|
||||
struct mt7615_sta *msta;
|
||||
bool new_entry = true;
|
||||
int conn_state;
|
||||
int cmd, err;
|
||||
|
||||
msta = sta ? (struct mt7615_sta *)sta->drv_priv : &mvif->sta;
|
||||
@@ -863,8 +864,9 @@ mt7615_mcu_wtbl_sta_add(struct mt7615_phy *phy, struct ieee80211_vif *vif,
|
||||
else
|
||||
mvif->sta_added = true;
|
||||
}
|
||||
conn_state = enable ? CONN_STATE_PORT_SECURE : CONN_STATE_DISCONNECT;
|
||||
mt76_connac_mcu_sta_basic_tlv(&dev->mt76, sskb, vif, link_sta,
|
||||
enable, new_entry);
|
||||
conn_state, new_entry);
|
||||
if (enable && sta)
|
||||
mt76_connac_mcu_sta_tlv(phy->mt76, sskb, sta, vif, 0,
|
||||
MT76_STA_INFO_STATE_ASSOC);
|
||||
|
||||
Reference in New Issue
Block a user