| From 144595bc970deaff03247b457a43cf8685328c97 Mon Sep 17 00:00:00 2001 |
| From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| Date: Tue, 11 Jun 2024 17:04:00 +0800 |
| Subject: [PATCH 140/193] mtk: mt76: mt7996: add per-link txpower config |
| |
| Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| --- |
| mt7996/main.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/mt7996/main.c b/mt7996/main.c |
| index 5207716..cc0c5ac 100644 |
| --- a/mt7996/main.c |
| +++ b/mt7996/main.c |
| @@ -1015,7 +1015,7 @@ out: |
| } |
| |
| int mt7996_get_txpower(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| - int *dbm) |
| + unsigned int link_id, int *dbm) |
| { |
| struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; |
| struct mt7996_bss_conf *mconf; |
| @@ -1024,7 +1024,7 @@ int mt7996_get_txpower(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| int delta; |
| |
| mutex_lock(&dev->mt76.mutex); |
| - mconf = mconf_dereference_protected(mvif, mvif->master_link_id); |
| + mconf = mconf_dereference_protected(mvif, link_id); |
| if (!mconf || !mconf->phy) { |
| *dbm = 0; |
| goto out; |
| -- |
| 2.45.2 |
| |