* [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
@ 2023-11-13 10:06 Lorenzo Bianconi
2023-11-13 12:05 ` Kalle Valo
2023-11-22 15:57 ` [wireless] " Kalle Valo
0 siblings, 2 replies; 8+ messages in thread
From: Lorenzo Bianconi @ 2023-11-13 10:06 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
Use iftype for interface type switch in mt7925_init_he_caps routine
Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
drivers/net/wireless/mediatek/mt76/mt7925/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/main.c b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
index 15c2fb0bcb1b..aa918b9b0469 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
@@ -14,7 +14,7 @@
static void
mt7925_init_he_caps(struct mt792x_phy *phy, enum nl80211_band band,
struct ieee80211_sband_iftype_data *data,
- enum nl80211_iftype iftype)
+ enum nl80211_iftype iftype)
{
struct ieee80211_sta_he_cap *he_cap = &data->he_cap;
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,
IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO |
IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO;
- switch (i) {
+ switch (iftype) {
case NL80211_IFTYPE_AP:
he_cap_elem->mac_cap_info[2] |=
IEEE80211_HE_MAC_CAP2_BSR;
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-13 10:06 [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps Lorenzo Bianconi
@ 2023-11-13 12:05 ` Kalle Valo
2023-11-13 12:32 ` Lorenzo Bianconi
2023-11-22 15:57 ` [wireless] " Kalle Valo
1 sibling, 1 reply; 8+ messages in thread
From: Kalle Valo @ 2023-11-13 12:05 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
Lorenzo Bianconi <lorenzo@kernel.org> writes:
> Use iftype for interface type switch in mt7925_init_he_caps routine
>
> Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver
> for mt7925 chips")
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
What issue does this fix? In other words, what are the user visible
symptoms?
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-13 12:05 ` Kalle Valo
@ 2023-11-13 12:32 ` Lorenzo Bianconi
2023-11-13 12:39 ` Kalle Valo
0 siblings, 1 reply; 8+ messages in thread
From: Lorenzo Bianconi @ 2023-11-13 12:32 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
> Lorenzo Bianconi <lorenzo@kernel.org> writes:
>
> > Use iftype for interface type switch in mt7925_init_he_caps routine
> >
> > Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver
> > for mt7925 chips")
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
>
> What issue does this fix? In other words, what are the user visible
> symptoms?
Since we are using i (equal to 8 after the for loop above) instead of iftype
we are missing some HE capabilities exposed to userspace (we are hitting the
switch default branch). I agree this is something not so harmful and we can
apply this fix to Felix's tree instead, up to you.
Regards,
Lorenzo
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-13 12:32 ` Lorenzo Bianconi
@ 2023-11-13 12:39 ` Kalle Valo
2023-11-13 12:41 ` Lorenzo Bianconi
0 siblings, 1 reply; 8+ messages in thread
From: Kalle Valo @ 2023-11-13 12:39 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
Lorenzo Bianconi <lorenzo@kernel.org> writes:
>> Lorenzo Bianconi <lorenzo@kernel.org> writes:
>>
>> > Use iftype for interface type switch in mt7925_init_he_caps routine
>> >
>> > Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver
>> > for mt7925 chips")
>> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
>>
>> What issue does this fix? In other words, what are the user visible
>> symptoms?
>
> Since we are using i (equal to 8 after the for loop above) instead of iftype
> we are missing some HE capabilities exposed to userspace (we are hitting the
> switch default branch). I agree this is something not so harmful and we can
> apply this fix to Felix's tree instead, up to you.
No no, this is fine for the wireless tree :) I just want to document if
this is fixing a real issue which users can see or just a theoretical
fix you found during code review. It makes handling fixes a lot easier
when we have this documented in the commit message.
No need to resend because of this, I can update the commit log if you
tell me what to add.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-13 12:39 ` Kalle Valo
@ 2023-11-13 12:41 ` Lorenzo Bianconi
2023-11-14 10:04 ` Kalle Valo
0 siblings, 1 reply; 8+ messages in thread
From: Lorenzo Bianconi @ 2023-11-13 12:41 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]
> Lorenzo Bianconi <lorenzo@kernel.org> writes:
>
> >> Lorenzo Bianconi <lorenzo@kernel.org> writes:
> >>
> >> > Use iftype for interface type switch in mt7925_init_he_caps routine
> >> >
> >> > Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver
> >> > for mt7925 chips")
> >> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> >>
> >> What issue does this fix? In other words, what are the user visible
> >> symptoms?
> >
> > Since we are using i (equal to 8 after the for loop above) instead of iftype
> > we are missing some HE capabilities exposed to userspace (we are hitting the
> > switch default branch). I agree this is something not so harmful and we can
> > apply this fix to Felix's tree instead, up to you.
>
> No no, this is fine for the wireless tree :) I just want to document if
> this is fixing a real issue which users can see or just a theoretical
> fix you found during code review. It makes handling fixes a lot easier
> when we have this documented in the commit message.
>
> No need to resend because of this, I can update the commit log if you
> tell me what to add.
ack, thx. I will more 'verbose' next time :)
Regards,
Lorenzo
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-13 12:41 ` Lorenzo Bianconi
@ 2023-11-14 10:04 ` Kalle Valo
2023-11-14 10:30 ` Lorenzo Bianconi
0 siblings, 1 reply; 8+ messages in thread
From: Kalle Valo @ 2023-11-14 10:04 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
Lorenzo Bianconi <lorenzo@kernel.org> writes:
>> Lorenzo Bianconi <lorenzo@kernel.org> writes:
>>
>> >> Lorenzo Bianconi <lorenzo@kernel.org> writes:
>> >>
>> >> > Use iftype for interface type switch in mt7925_init_he_caps routine
>> >> >
>> >> > Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver
>> >> > for mt7925 chips")
>> >> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
>> >>
>> >> What issue does this fix? In other words, what are the user visible
>> >> symptoms?
>> >
>> > Since we are using i (equal to 8 after the for loop above) instead of iftype
>> > we are missing some HE capabilities exposed to userspace (we are hitting the
>> > switch default branch). I agree this is something not so harmful and we can
>> > apply this fix to Felix's tree instead, up to you.
>>
>> No no, this is fine for the wireless tree :) I just want to document if
>> this is fixing a real issue which users can see or just a theoretical
>> fix you found during code review. It makes handling fixes a lot easier
>> when we have this documented in the commit message.
>>
>> No need to resend because of this, I can update the commit log if you
>> tell me what to add.
>
> ack, thx. I will more 'verbose' next time :)
But what I should add to the commit message? Is this just a theoretical
fix you found during code review? Or was there a bug report which
prompted you to fix this?
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-14 10:04 ` Kalle Valo
@ 2023-11-14 10:30 ` Lorenzo Bianconi
0 siblings, 0 replies; 8+ messages in thread
From: Lorenzo Bianconi @ 2023-11-14 10:30 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
[-- Attachment #1: Type: text/plain, Size: 1797 bytes --]
> Lorenzo Bianconi <lorenzo@kernel.org> writes:
>
> >> Lorenzo Bianconi <lorenzo@kernel.org> writes:
> >>
> >> >> Lorenzo Bianconi <lorenzo@kernel.org> writes:
> >> >>
> >> >> > Use iftype for interface type switch in mt7925_init_he_caps routine
> >> >> >
> >> >> > Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver
> >> >> > for mt7925 chips")
> >> >> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> >> >>
> >> >> What issue does this fix? In other words, what are the user visible
> >> >> symptoms?
> >> >
> >> > Since we are using i (equal to 8 after the for loop above) instead of iftype
> >> > we are missing some HE capabilities exposed to userspace (we are hitting the
> >> > switch default branch). I agree this is something not so harmful and we can
> >> > apply this fix to Felix's tree instead, up to you.
> >>
> >> No no, this is fine for the wireless tree :) I just want to document if
> >> this is fixing a real issue which users can see or just a theoretical
> >> fix you found during code review. It makes handling fixes a lot easier
> >> when we have this documented in the commit message.
> >>
> >> No need to resend because of this, I can update the commit log if you
> >> tell me what to add.
> >
> > ack, thx. I will more 'verbose' next time :)
>
> But what I should add to the commit message? Is this just a theoretical
> fix you found during code review? Or was there a bug report which
> prompted you to fix this?
I have just spot the bug during code review but it seems it is even reported in
coverity with id 1549845.
Regards,
Lorenzo
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
2023-11-13 10:06 [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps Lorenzo Bianconi
2023-11-13 12:05 ` Kalle Valo
@ 2023-11-22 15:57 ` Kalle Valo
1 sibling, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2023-11-22 15:57 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: linux-wireless, lorenzo.bianconi, nbd, sean.wang, deren.wu
Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> 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: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Patch applied to wireless.git, thanks.
695bfba7ca78 wifi: mt76: mt7925: fix typo in mt7925_init_he_caps
--
https://patchwork.kernel.org/project/linux-wireless/patch/7de6e939dc75ee08f05bf1ee73253aa7eeccf28e.1699869649.git.lorenzo@kernel.org/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-11-22 15:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 10:06 [PATCH wireless] wifi: mt76: mt7925: fix typo in mt7925_init_he_caps Lorenzo Bianconi
2023-11-13 12:05 ` Kalle Valo
2023-11-13 12:32 ` Lorenzo Bianconi
2023-11-13 12:39 ` Kalle Valo
2023-11-13 12:41 ` Lorenzo Bianconi
2023-11-14 10:04 ` Kalle Valo
2023-11-14 10:30 ` Lorenzo Bianconi
2023-11-22 15:57 ` [wireless] " Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).