Skip to content

Commit 695bfba

Browse files
LorenzoBianconiKalle Valo
authored andcommitted
wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
Use iftype for interface type switch in mt7925_init_he_caps routine. This found during code review but later Coverity reported this with id 1549845. Fixes: c948b5d ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/7de6e939dc75ee08f05bf1ee73253aa7eeccf28e.1699869649.git.lorenzo@kernel.org
1 parent 7a934b5 commit 695bfba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/net/wireless/mediatek/mt76/mt7925

drivers/net/wireless/mediatek/mt76/mt7925/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
static void
1515
mt7925_init_he_caps(struct mt792x_phy *phy, enum nl80211_band band,
1616
struct ieee80211_sband_iftype_data *data,
17-
enum nl80211_iftype iftype)
17+
enum nl80211_iftype iftype)
1818
{
1919
struct ieee80211_sta_he_cap *he_cap = &data->he_cap;
2020
struct ieee80211_he_cap_elem *he_cap_elem = &he_cap->he_cap_elem;
@@ -53,7 +53,7 @@ mt7925_init_he_caps(struct mt792x_phy *phy, enum nl80211_band band,
5353
IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO |
5454
IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO;
5555

56-
switch (i) {
56+
switch (iftype) {
5757
case NL80211_IFTYPE_AP:
5858
he_cap_elem->mac_cap_info[2] |=
5959
IEEE80211_HE_MAC_CAP2_BSR;

0 commit comments

Comments
 (0)