.../net/wireless/marvell/mwifiex/cfg80211.c | 394 +++++++++++++++++- drivers/net/wireless/marvell/mwifiex/cmdevt.c | 27 ++ drivers/net/wireless/marvell/mwifiex/decl.h | 22 + drivers/net/wireless/marvell/mwifiex/fw.h | 54 +++ drivers/net/wireless/marvell/mwifiex/init.c | 6 + drivers/net/wireless/marvell/mwifiex/ioctl.h | 5 + drivers/net/wireless/marvell/mwifiex/join.c | 66 ++- drivers/net/wireless/marvell/mwifiex/main.c | 54 +++ drivers/net/wireless/marvell/mwifiex/main.h | 16 + drivers/net/wireless/marvell/mwifiex/scan.c | 6 + drivers/net/wireless/marvell/mwifiex/sdio.c | 13 + drivers/net/wireless/marvell/mwifiex/sdio.h | 2 + .../wireless/marvell/mwifiex/sta_cmdresp.c | 2 + .../net/wireless/marvell/mwifiex/sta_event.c | 36 +- .../net/wireless/marvell/mwifiex/sta_ioctl.c | 2 +- drivers/net/wireless/marvell/mwifiex/sta_tx.c | 9 +- .../net/wireless/marvell/mwifiex/uap_cmd.c | 171 ++++++++ drivers/net/wireless/marvell/mwifiex/util.c | 104 +++++ 18 files changed, 972 insertions(+), 17 deletions(-)
With host mlme:
Tested-by: <rafael.beims@toradex.com> #Verdin AM62 IW416 SD
Without host mlme:
Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com> # 88W8997-SD
This series add host based MLME support to the mwifiex driver, this
enables WPA3 support in both client and AP mode.
To enable WPA3, a firmware with corresponding V2 Key API support is
required.
The feature is currently only enabled on NXP IW416 (SD8978), and it
was internally validated by NXP QA team. Other NXP Wi-Fi chips
supported in current mwifiex are not affected by this change.
v9:
- Remove redundent code.
- Remove unnecessary goto target.
v8:
- Separate 6/12 from patch v7.
As it's a bug fix not part of host MLME feature.
- Rearrnage MLME feature into 2 patches:
a. Add host based MLME support for STA mode.
b. Add host based MLME support for AP mode.
v7:
- Fix regression: Downlink throughput degraded by 70% in AP mode.
- Fix issue: On STAUT, kernel Oops occurs when there is no association
response from AP.
- Fix issue: On STAUT, if AP leaves abruptly and deauth is missing,
STA can't connect to AP anymore.
- Fix regression: STA can't connect to AP when host_mlme is disabled
(impact all chips).
- Address reviewer comments.
v6:
- Correct mailing sequence.
v5:
- Add host base MLME support to enable WPA3 functionalities for both
STA and AP mode.
- This feature (WPA3) required a firmware with corresponding Key API V2
support.
- QA validation and regression have been covered for IW416.
- This feature (WPA3) is currently enabled and verified only for IW416.
- Changelogs since patch V4:
a. Add WPA3 support for AP mode.
b. Bug fix: In WPA3 STA mode, deice gets disconnected from AP
when group rekey occurs.
c. Bug fix: STAUT doesn't send WMM IE in association request when
associate to a WMM-AP.
v4:
- Refine code segment per review comment.
- Add API to check firmware encryption key command version when
host_mlme is enabled.
v3:
- Cleanup commit message.
v2:
- Fix checkpatch error (pwe[1] -> pwe[0]).
- Move module parameter 'host_mlme' to mwifiex_sdio_device structure.
Default only enable for IW416.
- Disable advertising NL80211_FEATURE_SAE if host_mlme is not enabled.
David Lin (2):
wifi: mwifiex: add host mlme for client mode
wifi: mwifiex: add host mlme for AP mode
.../net/wireless/marvell/mwifiex/cfg80211.c | 394 +++++++++++++++++-
drivers/net/wireless/marvell/mwifiex/cmdevt.c | 27 ++
drivers/net/wireless/marvell/mwifiex/decl.h | 22 +
drivers/net/wireless/marvell/mwifiex/fw.h | 54 +++
drivers/net/wireless/marvell/mwifiex/init.c | 6 +
drivers/net/wireless/marvell/mwifiex/ioctl.h | 5 +
drivers/net/wireless/marvell/mwifiex/join.c | 66 ++-
drivers/net/wireless/marvell/mwifiex/main.c | 54 +++
drivers/net/wireless/marvell/mwifiex/main.h | 16 +
drivers/net/wireless/marvell/mwifiex/scan.c | 6 +
drivers/net/wireless/marvell/mwifiex/sdio.c | 13 +
drivers/net/wireless/marvell/mwifiex/sdio.h | 2 +
.../wireless/marvell/mwifiex/sta_cmdresp.c | 2 +
.../net/wireless/marvell/mwifiex/sta_event.c | 36 +-
.../net/wireless/marvell/mwifiex/sta_ioctl.c | 2 +-
drivers/net/wireless/marvell/mwifiex/sta_tx.c | 9 +-
.../net/wireless/marvell/mwifiex/uap_cmd.c | 171 ++++++++
drivers/net/wireless/marvell/mwifiex/util.c | 104 +++++
18 files changed, 972 insertions(+), 17 deletions(-)
base-commit: b621df176d4d6eacd8b057f7324229655f10e77a
--
2.34.1
On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote:
> With host mlme:
> Tested-by: <rafael.beims@toradex.com> #Verdin AM62 IW416 SD
> Without host mlme:
> Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com> # 88W8997-SD
>
> This series add host based MLME support to the mwifiex driver, this
> enables WPA3 support in both client and AP mode.
> To enable WPA3, a firmware with corresponding V2 Key API support is
> required.
> The feature is currently only enabled on NXP IW416 (SD8978), and it
> was internally validated by NXP QA team. Other NXP Wi-Fi chips
> supported in current mwifiex are not affected by this change.
Thank you for all the evoluation in this series. This looks much better
than it did at the start, and I appreciate the additional explanation of
featureset (HW and FW versions). I'm not sure if this has been
asked/answered before, but are the MLME/WPA3 limitations exclusively
tied to the firmware support ("V2 Key API")? Or are there hardware
limitations on top (e.g., some firmware might get "V2 Key API" but still
be unsupported on a given chip family)? Could other chips chips
theoretically get this feature-set in the future?
In absence of a clear answer on this, it's definitely a good idea to do
things like you have in this series now -- that you have a short-list
(of 1) of HW where where it's validated, and additionally a FW
feature/revision check to ensure it's running appropriate firmware. But
I just wonder what the feasibility would be for adding to the shortlist
(or providing users/developers the option of doing so) in the future, if
people are so inclined.
To be clear, this is mostly an informational curiosity and
forward-looking question -- not a request to change the implementation
in this series.
Thanks,
Brian
Hello Brian (and Kalle), On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: > This series add host based MLME support to the mwifiex driver, this > enables WPA3 support in both client and AP mode. What's your plan for this series? I know you raised some concern when this started months ago and I'd love to know if there is something that would need to be addressed to move forward here. Francesco p.s. I'm aware we are in the middle of the Linux merge window and nothing will happen till it closes.
Francesco Dolcini <francesco@dolcini.it> writes: > Hello Brian (and Kalle), > > On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: >> This series add host based MLME support to the mwifiex driver, this >> enables WPA3 support in both client and AP mode. > > What's your plan for this series? I know you raised some concern when > this started months ago and I'd love to know if there is something that > would need to be addressed to move forward here. Based on the history of this patchset I am a bit concerned if these patches break existing setups. I'm sure Brian will look at that in detail but more test results from different setups we have the better. > p.s. I'm aware we are in the middle of the Linux merge window and > nothing will happen till it closes. BTW, thanks to some for-next branch trickery, we keep wireless-next open also during merge windows. This is to avoid unnecessarily stopping the development. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
On Mon, Mar 18, 2024 at 11:24:34AM +0200, Kalle Valo wrote: > Francesco Dolcini <francesco@dolcini.it> writes: > > > Hello Brian (and Kalle), > > > > On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: > >> This series add host based MLME support to the mwifiex driver, this > >> enables WPA3 support in both client and AP mode. > > > > What's your plan for this series? I know you raised some concern when > > this started months ago and I'd love to know if there is something that > > would need to be addressed to move forward here. > > Based on the history of this patchset I am a bit concerned if these > patches break existing setups. I'm sure Brian will look at that in > detail but more test results from different setups we have the better. It looks like the latest patches generally avoid touching behavior for devices without this feature-set. And I've given it a bit of a whirl myself, although I have a pretty blind eye to AP-mode as my systems tend to be clients. Yes, testing is always a concern for invasive changes, but I think we're in OK shape at least w.r.t. regressing existing setups. Or, I won't provide an Acked-by until I'm happy. Brian
+ Johannes On Fri, Mar 15, 2024 at 10:49:27AM +0100, Francesco Dolcini wrote: > Hello Brian (and Kalle), > > On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: > > This series add host based MLME support to the mwifiex driver, this > > enables WPA3 support in both client and AP mode. > > What's your plan for this series? I know you raised some concern when > this started months ago and I'd love to know if there is something that > would need to be addressed to move forward here. Now that I've looked a bit closer today: I'm realizing this may(?) be one of the first "full MAC" drivers trying to implement its own MLME -- or at least, the auth/assoc bits. I wouldn't really consider myself an expert on the core wireless APIs here, so this might be an area that could warrant some extra look from Kalle and/or Johannes too. Brian
On Fri, 2024-03-15 at 17:49 -0700, Brian Norris wrote: > > Now that I've looked a bit closer today: I'm realizing this may(?) be > one of the first "full MAC" drivers trying to implement its own MLME -- > or at least, the auth/assoc bits. Hmm, yeah, why _is_ that? mwifiex was originally "sold" as a "full MAC" driver, i.e. doing things in the firmware. We've said that "soft MAC" drivers should be using mac80211, but this thing can't seem to decide? Also decl.h should probably _shrink_ rather than grow, a number of things just replicate ieee80211.h (such as MWIFIEX_MGMT_HEADER_LEN really is just sizeof(ieee80211_mgmt) or so? Not quite correctly.) So yeah, agree with Brian, not only would this be the first, but it's also something we don't really _want_. All other drivers that want stuff like this are stuck in staging ... So why is this needed for a supposedly "firmware does it all" driver, and why can it not be integrated with mac80211 if it's no longer "firmware does it all"? johannes
Hi Francesco, On Fri, Mar 15, 2024 at 10:49:27AM +0100, Francesco Dolcini wrote: > Hello Brian (and Kalle), > > On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: > > This series add host based MLME support to the mwifiex driver, this > > enables WPA3 support in both client and AP mode. > > What's your plan for this series? I know you raised some concern when > this started months ago and I'd love to know if there is something that > would need to be addressed to move forward here. My plan was (especially given the "Odd Fixes" status in MAINTAINERS) to wait until a 2nd party was happy with things here. From my cursory following of things, that has now occurred -- thanks for all the review Francesco. My plan recently was to get back to reviewing the code again, and it's been sitting in my inbox. Unfortunately, I haven't made time in these last ~9 days so far. I'm revisiting it now. Regards, Brian
On Fri, Mar 15, 2024 at 04:59:19PM -0700, Brian Norris wrote: > On Fri, Mar 15, 2024 at 10:49:27AM +0100, Francesco Dolcini wrote: > > On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: > > > This series add host based MLME support to the mwifiex driver, this > > > enables WPA3 support in both client and AP mode. > > > > What's your plan for this series? I know you raised some concern when > > this started months ago and I'd love to know if there is something that > > would need to be addressed to move forward here. > > My plan was (especially given the "Odd Fixes" status in MAINTAINERS) to > wait until a 2nd party was happy with things here. From my cursory > following of things, that has now occurred -- thanks for all the review > Francesco. Brian/Kalle, would be ok for you to add myself as reviewer for mwifiex? The patch flow on the driver is pretty limited, but I care about it and I am happy to help out if needed (and I have some hardware available for testing). If you agree I'll send a patch to the MAINTAINERS file. Francesco
Francesco Dolcini <francesco@dolcini.it> writes: > On Fri, Mar 15, 2024 at 04:59:19PM -0700, Brian Norris wrote: >> On Fri, Mar 15, 2024 at 10:49:27AM +0100, Francesco Dolcini wrote: >> > On Wed, Mar 06, 2024 at 10:00:51AM +0800, David Lin wrote: >> > > This series add host based MLME support to the mwifiex driver, this >> > > enables WPA3 support in both client and AP mode. >> > >> > What's your plan for this series? I know you raised some concern when >> > this started months ago and I'd love to know if there is something that >> > would need to be addressed to move forward here. >> >> My plan was (especially given the "Odd Fixes" status in MAINTAINERS) to >> wait until a 2nd party was happy with things here. From my cursory >> following of things, that has now occurred -- thanks for all the review >> Francesco. > > Brian/Kalle, would be ok for you to add myself as reviewer for mwifiex? > The patch flow on the driver is pretty limited, but I care about it > and I am happy to help out if needed (and I have some hardware available > for testing). > > If you agree I'll send a patch to the MAINTAINERS file. At least from my point of view that sounds like a good idea, you have provided good review comments for this driver. But let's wait what Brian says. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
On Tue, Mar 19, 2024 at 12:33:55PM +0200, Kalle Valo wrote: > Francesco Dolcini <francesco@dolcini.it> writes: > > Brian/Kalle, would be ok for you to add myself as reviewer for mwifiex? > > The patch flow on the driver is pretty limited, but I care about it > > and I am happy to help out if needed (and I have some hardware available > > for testing). > > > > If you agree I'll send a patch to the MAINTAINERS file. > > At least from my point of view that sounds like a good idea, you have > provided good review comments for this driver. But let's wait what Brian > says. That's totally fine with me.
© 2016 - 2025 Red Hat, Inc.