blob: aea2ccde9c6be4840a4b4941e5f60a901607981a [file] [log] [blame]
From 5959391d31be290f08b6614c178231a298b4b91e Mon Sep 17 00:00:00 2001
From: Peter Chiu <chui-hao.chiu@mediatek.com>
Date: Mon, 23 Oct 2023 10:25:13 +0800
Subject: [PATCH 2012/2015] Revert "wifi: mt76: mt7921: fix the wrong rate
selected in fw for the chanctx driver"
This reverts commit 9fc37b0ac5467cfe5e3d2ad8a29e9a7646ece2be.
---
mt76_connac_mcu.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/mt76_connac_mcu.c b/mt76_connac_mcu.c
index aa99bd78..3a6404a7 100644
--- a/mt76_connac_mcu.c
+++ b/mt76_connac_mcu.c
@@ -837,9 +837,7 @@ void mt76_connac_mcu_sta_tlv(struct mt76_phy *mphy, struct sk_buff *skb,
struct ieee80211_vif *vif,
u8 rcpi, u8 sta_state)
{
- struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv;
- struct cfg80211_chan_def *chandef = mvif->ctx ?
- &mvif->ctx->def : &mphy->chandef;
+ struct cfg80211_chan_def *chandef = &mphy->chandef;
enum nl80211_band band = chandef->chan->band;
struct mt76_dev *dev = mphy->dev;
struct sta_rec_ra_info *ra_info;
@@ -1345,10 +1343,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_get_phy_mode);
const struct ieee80211_sta_he_cap *
mt76_connac_get_he_phy_cap(struct mt76_phy *phy, struct ieee80211_vif *vif)
{
- struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv;
- struct cfg80211_chan_def *chandef = mvif->ctx ?
- &mvif->ctx->def : &phy->chandef;
- enum nl80211_band band = chandef->chan->band;
+ enum nl80211_band band = phy->chandef.chan->band;
struct ieee80211_supported_band *sband;
sband = phy->hw->wiphy->bands[band];
--
2.18.0