linux/drivers/net/wireless/intel/iwlegacy
Stanislaw Gruszka 57aa1718d5 wifi: iwlegacy: replace BUG_ON() with WARN_ON() on num_stations check
BUG_ON() for il->num_stations < 0 can happen in real word, see
https://bugzilla.kernel.org/show_bug.cgi?id=221733

Replace BUG_ON() with WARN_ON() (and reset the counter to 0) to
do not put whole system to inconsistent state on the condition.

Also allocate debugfs buffer for all stations (32 or 25)
to do not use num_stations since it might not be right.

Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/20260724095545.33647-1-stf_xl@wp.pl
[clarify commit message wrt. debugfs buffer]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-07-28 15:35:37 +02:00
..
3945-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
3945-mac.c wifi: iwlegacy: Fix GFP flags in allocation loop 2026-04-07 15:38:35 +02:00
3945-rs.c wifi: iwlegacy: 3945-rs: remove redundant pointer check in il3945_rs_tx_status() and il3945_rs_get_rate() 2026-01-12 19:42:49 +01:00
3945.c Revert "wifi: iwlegacy: do not skip frames with bad FCS" 2024-11-12 20:24:45 +02:00
3945.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
4965-calib.c iwlegacy: 4965-calib: Demote seemingly accidental kernel-doc header 2020-09-01 12:22:42 +03:00
4965-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
4965-mac.c wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
4965-rs.c wifi: iwlegacy: work around excessive stack usage on clang/kasan 2025-06-24 09:04:42 +02:00
4965.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
4965.h wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
commands.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
common.c wifi: iwlegacy: replace BUG_ON() with WARN_ON() on num_stations check 2026-07-28 15:35:37 +02:00
common.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
csr.h
debug.c wifi: iwlegacy: replace BUG_ON() with WARN_ON() on num_stations check 2026-07-28 15:35:37 +02:00
iwl-spectrum.h wifi: iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings 2025-09-03 10:06:41 +02:00
Kconfig iwlwifi: fix LED dependencies 2021-12-08 20:17:06 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
prph.h