mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 wireless 0/3] wifi: replace open-coded IE searches with cfg80211_find_ie()
@ 2026-10-26 22:31 Tristan Madani
  2026-10-27  6:04 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Tristan Madani @ 2026-10-26 22:31 UTC (permalink / raw)
  To: Johannes Berg, Christian Lamparter, Stanislaw Gruszka
  Cc: Ivo van Doorn, John W . Linville, Kees Cook, linux-wireless,
	linux-kernel, stable, tristan

Three wireless drivers (carl9170, rt2x00, p54) each hand-roll their own
TIM IE search function.  Replace them with cfg80211_find_ie(), which
already provides a correct and well-tested IE search.

Changes in v2:
  - Replace the entire open-coded functions with cfg80211_find_ie()
    instead of only tightening the loop condition, per Johannes Berg.
  - Add pre-subtraction length guards in p54 to prevent unsigned
    underflow on truncated beacon frames.

Tristan Madani (3):
  wifi: carl9170: replace open-coded IE search with cfg80211_find_ie()
  wifi: rt2x00: replace open-coded IE search with cfg80211_find_ie()
  wifi: p54: replace open-coded IE search with cfg80211_find_ie()

 drivers/net/wireless/ath/carl9170/rx.c        | 27 ++++-------------
 drivers/net/wireless/intersil/p54/lmac.h      |  3 --
 drivers/net/wireless/intersil/p54/main.c      | 30 +++++--------------
 drivers/net/wireless/intersil/p54/txrx.c      | 12 ++++++--
 .../net/wireless/ralink/rt2x00/rt2x00dev.c    | 30 +++++--------------
 5 files changed, 29 insertions(+), 73 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 wireless 0/3] wifi: replace open-coded IE searches with cfg80211_find_ie()
  2026-10-26 22:31 [PATCH v2 wireless 0/3] wifi: replace open-coded IE searches with cfg80211_find_ie() Tristan Madani
@ 2026-10-27  6:04 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-10-27  6:04 UTC (permalink / raw)
  To: Tristan Madani
  Cc: Johannes Berg, Christian Lamparter, Stanislaw Gruszka,
	Ivo van Doorn, John W . Linville, Kees Cook, linux-wireless,
	linux-kernel, stable, tristan

On Mon, Oct 26, 2026 at 10:31:52PM +0000, Tristan Madani wrote:
> Three wireless drivers (carl9170, rt2x00, p54) each hand-roll their own
> TIM IE search function.  Replace them with cfg80211_find_ie(), which
> already provides a correct and well-tested IE search.
> 
> Changes in v2:
>   - Replace the entire open-coded functions with cfg80211_find_ie()
>     instead of only tightening the loop condition, per Johannes Berg.
>   - Add pre-subtraction length guards in p54 to prevent unsigned
>     underflow on truncated beacon frames.
> 
> Tristan Madani (3):
>   wifi: carl9170: replace open-coded IE search with cfg80211_find_ie()
>   wifi: rt2x00: replace open-coded IE search with cfg80211_find_ie()
>   wifi: p54: replace open-coded IE search with cfg80211_find_ie()
> 
>  drivers/net/wireless/ath/carl9170/rx.c        | 27 ++++-------------
>  drivers/net/wireless/intersil/p54/lmac.h      |  3 --
>  drivers/net/wireless/intersil/p54/main.c      | 30 +++++--------------
>  drivers/net/wireless/intersil/p54/txrx.c      | 12 ++++++--
>  .../net/wireless/ralink/rt2x00/rt2x00dev.c    | 30 +++++--------------
>  5 files changed, 29 insertions(+), 73 deletions(-)
> 
> -- 
> 2.47.3
> 
> 

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-27  6:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 22:31 [PATCH v2 wireless 0/3] wifi: replace open-coded IE searches with cfg80211_find_ie() Tristan Madani
2026-10-27  6:04 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®