developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 1 | From 20c5dfdc5afbb01b853689dd45f1826e9644a87b Mon Sep 17 00:00:00 2001 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Tue, 11 Jun 2024 17:04:00 +0800 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 4 | Subject: [PATCH 140/223] mtk: mt76: mt7996: add per-link txpower config |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 7 | --- |
| 8 | mt7996/main.c | 4 ++-- |
| 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | diff --git a/mt7996/main.c b/mt7996/main.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 12 | index 5ddf3a1b..ed64cf06 100644 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 13 | --- a/mt7996/main.c |
| 14 | +++ b/mt7996/main.c |
| 15 | @@ -1016,7 +1016,7 @@ out: |
| 16 | } |
| 17 | |
| 18 | int mt7996_get_txpower(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| 19 | - int *dbm) |
| 20 | + unsigned int link_id, int *dbm) |
| 21 | { |
| 22 | struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; |
| 23 | struct mt7996_bss_conf *mconf; |
| 24 | @@ -1025,7 +1025,7 @@ int mt7996_get_txpower(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| 25 | int delta; |
| 26 | |
| 27 | mutex_lock(&dev->mt76.mutex); |
| 28 | - mconf = mconf_dereference_protected(mvif, mvif->master_link_id); |
| 29 | + mconf = mconf_dereference_protected(mvif, link_id); |
| 30 | if (!mconf || !mconf->phy) { |
| 31 | *dbm = 0; |
| 32 | goto out; |
| 33 | -- |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 34 | 2.45.2 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 35 | |