Skip to content

Commit e4c5ead

Browse files
ryderlee1110nbd168
authored andcommitted
mt76: mt7915: rename mt7915_mcu_get_rate_info to mt7915_mcu_get_tx_rate
Avoid confusion with rx rate query function. Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent 4051308 commit e4c5ead

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ mt7915_mac_sta_stats_work(struct mt7915_phy *phy)
14221422
spin_unlock_bh(&dev->sta_poll_lock);
14231423

14241424
/* use MT_TX_FREE_RATE to report Tx rate for further devices */
1425-
mt7915_mcu_get_rate_info(dev, RATE_CTRL_RU_INFO, msta->wcid.idx);
1425+
mt7915_mcu_get_tx_rate(dev, RATE_CTRL_RU_INFO, msta->wcid.idx);
14261426

14271427
spin_lock_bh(&dev->sta_poll_lock);
14281428
}

drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ mt7915_mcu_rx_radar_detected(struct mt7915_dev *dev, struct sk_buff *skb)
352352
}
353353

354354
static void
355-
mt7915_mcu_tx_rate_cal(struct mt76_phy *mphy, struct mt7915_mcu_ra_info *ra,
356-
struct rate_info *rate, u16 r)
355+
mt7915_mcu_tx_rate_parse(struct mt76_phy *mphy, struct mt7915_mcu_ra_info *ra,
356+
struct rate_info *rate, u16 r)
357357
{
358358
struct ieee80211_supported_band *sband;
359359
u16 ru_idx = le16_to_cpu(ra->ru_idx);
@@ -465,11 +465,11 @@ mt7915_mcu_tx_rate_report(struct mt7915_dev *dev, struct sk_buff *skb)
465465
mphy = dev->mt76.phy2;
466466

467467
/* current rate */
468-
mt7915_mcu_tx_rate_cal(mphy, ra, &rate, curr);
468+
mt7915_mcu_tx_rate_parse(mphy, ra, &rate, curr);
469469
stats->tx_rate = rate;
470470

471471
/* probing rate */
472-
mt7915_mcu_tx_rate_cal(mphy, ra, &prob_rate, probe);
472+
mt7915_mcu_tx_rate_parse(mphy, ra, &prob_rate, probe);
473473
stats->prob_rate = prob_rate;
474474

475475
if (attempts) {
@@ -3260,7 +3260,7 @@ int mt7915_mcu_get_temperature(struct mt7915_dev *dev, int index)
32603260
sizeof(req), true);
32613261
}
32623262

3263-
int mt7915_mcu_get_rate_info(struct mt7915_dev *dev, u32 cmd, u16 wlan_idx)
3263+
int mt7915_mcu_get_tx_rate(struct mt7915_dev *dev, u32 cmd, u16 wlan_idx)
32643264
{
32653265
struct {
32663266
__le32 cmd;

drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ int mt7915_mcu_set_pulse_th(struct mt7915_dev *dev,
319319
const struct mt7915_dfs_pulse *pulse);
320320
int mt7915_mcu_set_radar_th(struct mt7915_dev *dev, int index,
321321
const struct mt7915_dfs_pattern *pattern);
322-
int mt7915_mcu_get_rate_info(struct mt7915_dev *dev, u32 cmd, u16 wlan_idx);
323322
int mt7915_mcu_get_temperature(struct mt7915_dev *dev, int index);
323+
int mt7915_mcu_get_tx_rate(struct mt7915_dev *dev, u32 cmd, u16 wlan_idx);
324324
int mt7915_mcu_get_rx_rate(struct mt7915_phy *phy, struct ieee80211_vif *vif,
325325
struct ieee80211_sta *sta, struct rate_info *rate);
326326
int mt7915_mcu_rdd_cmd(struct mt7915_dev *dev, enum mt7915_rdd_cmd cmd,

0 commit comments

Comments
 (0)