Skip to content
Snippets Groups Projects
Commit 75bd919c authored by David Ruth's avatar David Ruth Committed by Oleksii Kutuzov
Browse files

Revert "UPSTREAM: wifi: mt76: mt7921: add chanctx parameter to...

Revert "UPSTREAM: wifi: mt76: mt7921: add chanctx parameter to mt76_connac_mcu_uni_add_bss signature"

Reason for revert: Introduces a regression in 11g behavior

Original change's description:
> UPSTREAM: wifi: mt76: mt7921: add chanctx parameter
> to mt76_connac_mcu_uni_add_bss signature
>
> Add a chanctx parameter to mt76_connac_mcu_uni_add_bss signature to allow
> the firmware binds the BSS into the specific channel context.
>
> Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
> Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
>
> BUG=b:178754244, b:290317904
> TEST=Build on corsola
>
> Change-Id: Ide623131001626ea1948fe4df9338024af67670e
> Signed-off-by: default avatarSean Wang <objelf@gmail.com>
> Commit-Queue: David Ruth <druth@chromium.org>
> Reviewed-by: default avatarDavid Ruth <druth@chromium.org>
> Reviewed-by: default avatarSean Paul <sean@poorly.run>
> Tested-by: default avatarDavid Ruth <druth@chromium.org>

BUG=b:178754244, b:290317904, b:292266077

Change-Id: I165d158ec34db4123cb89e425485cb64820ebbdd
Signed-off-by: default avatarSean Wang <objelf@gmail.com>
Signed-off-by: default avatarDavid Ruth <druth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/4708655
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: David Ruth <druth@chromium.org>
parent f19455df
Branches
No related tags found
1 merge request!11[UPSTREAM] Add WIFI-related patches from Mediatek's Release 24.0
......@@ -704,7 +704,7 @@ void mt7921_mac_sta_assoc(struct mt76_dev *mdev, struct ieee80211_vif *vif,
if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls)
mt76_connac_mcu_uni_add_bss(&dev->mphy, vif, &mvif->sta.wcid,
true, NULL);
true);
mt7921_mac_wtbl_update(dev, msta->wcid.idx,
MT_WTBL_UPDATE_ADM_COUNT_CLEAR);
......@@ -736,8 +736,7 @@ void mt7921_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
ewma_rssi_init(&mvif->rssi);
if (!sta->tdls)
mt76_connac_mcu_uni_add_bss(&dev->mphy, vif,
&mvif->sta.wcid, false,
NULL);
&mvif->sta.wcid, false);
}
spin_lock_bh(&dev->sta_poll_lock);
......@@ -1492,7 +1491,7 @@ mt7921_start_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
mt7921_mutex_acquire(dev);
err = mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid,
true, NULL);
true);
if (err)
goto out;
......@@ -1522,8 +1521,7 @@ mt7921_stop_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
if (err)
goto out;
mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid, false,
NULL);
mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid, false);
out:
mt7921_mutex_release(dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment