lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <PA4PR04MB9638016F363BFF87D62B70D1D1922@PA4PR04MB9638.eurprd04.prod.outlook.com>
Date: Mon, 2 Sep 2024 02:24:53 +0000
From: David Lin <yu-hao.lin@....com>
To: Sascha Hauer <s.hauer@...gutronix.de>, Francesco Dolcini
	<francesco@...cini.it>
CC: Calvin Owens <calvin@...nvd.org>, Brian Norris <briannorris@...omium.org>,
	Kalle Valo <kvalo@...nel.org>, "linux-wireless@...r.kernel.org"
	<linux-wireless@...r.kernel.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "kernel@...gutronix.de"
	<kernel@...gutronix.de>
Subject: RE: [EXT] [RFC PATCH 0/4] mwifiex: add support for iw61x

> From: Sascha Hauer <s.hauer@...gutronix.de>
> Sent: Monday, August 26, 2024 3:27 PM
> To: Francesco Dolcini <francesco@...cini.it>
> Cc: Calvin Owens <calvin@...nvd.org>; Brian Norris
> <briannorris@...omium.org>; Kalle Valo <kvalo@...nel.org>; David Lin
> <yu-hao.lin@....com>; linux-wireless@...r.kernel.org;
> linux-kernel@...r.kernel.org; kernel@...gutronix.de; Sascha Hauer
> <s.hauer@...gutronix.de>
> Subject: [EXT] [RFC PATCH 0/4] mwifiex: add support for iw61x
>
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report
> this email' button
>
>
> This series adds support for the iw61x chips to the mwifiex driver.
> There are a few things to address, hence the RFC status. See the commit
> messages for details. The series is based on wireless-next/main.
>
> I am sending this now since people requested it here [1], but as it's out now
> feel free to leave your comments to the issues mentioned (or others I haven't
> mentioned ;)
>
> [1]
> https://lore.kern/
> el.org%2Fall%2F20240809094533.1660-1-yu-hao.lin%40nxp.com%2F&data=05
> %7C02%7Cyu-hao.lin%40nxp.com%7C184ab4fed58647150f8508dcc5a0789a%7
> C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C638602540229716119%
> 7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJB
> TiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=cACBHxaQvcOqu6ri
> BoAlZDONRlGQ4j5DcglEV9T%2BpYU%3D&reserved=0
>
> Sascha
>
>
> Sascha Hauer (4):
>   wifi: mwifiex: release firmware at remove time
>   wifi: mwifiex: handle VDLL
>   wifi: mwifiex: wait longer for SDIO card status
>   mwifiex: add iw61x support
>
>  drivers/net/wireless/marvell/mwifiex/cmdevt.c | 86 +++++++++++++++++++
>  drivers/net/wireless/marvell/mwifiex/fw.h     | 16 ++++
>  drivers/net/wireless/marvell/mwifiex/main.c   |  9 +-
>  drivers/net/wireless/marvell/mwifiex/main.h   |  4 +
>  drivers/net/wireless/marvell/mwifiex/sdio.c   | 81 ++++++++++++++++-
>  drivers/net/wireless/marvell/mwifiex/sdio.h   |  3 +
>  .../net/wireless/marvell/mwifiex/sta_event.c  |  4
> +  .../net/wireless/marvell/mwifiex/uap_event.c  |  4 +
>  include/linux/mmc/sdio_ids.h                  |  3 +
>  9 files changed, 205 insertions(+), 5 deletions(-)
>
> --
> 2.39.2

I think you ported VDLL related code from nxpwifi and you also traced our private/downstream MXM driver.
If this is the case, I think you should know nxpwifi already cleaned up the porting VDLL code from MXM driver.
I check your patch quickly. You ported the new SDIO data type (MWIFIEX_TYPE_VDLL) from nxpwifi, but you
did not port the code to support this new data type from nxpwifi. In other word, you did not test your
patch before submission (same as some of your patches).

Another thing is that this new SDIO data type should be handled carefully with other existed SDIO data type.

Nxpwifi only supports new SDIO mode, so the modification to support NXPWIFI_TYPE_VDLL can be clean and
simple. If you want to port the code to Mwifiex, there is no one-to-one modification of the code.

Another important thing is that you should consider if your modifications will affect existed devices or not.
You need to check if you should check firmware version or chip type before adding some code.

BTW, no matter if you add the code with or without checking of firmware version or chip type, you should test
your modifications for IW61x and at least one legacy device if the code is added to Mwifiex.

David

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ