public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] wifi: ath9k: Fix typo
@ 2025-12-21 22:25 Alejandro Colomar
  2026-02-23 15:17 ` Toke Høiland-Jørgensen
  2026-02-26 21:29 ` Jeff Johnson
  0 siblings, 2 replies; 14+ messages in thread
From: Alejandro Colomar @ 2025-12-21 22:25 UTC (permalink / raw)
  To: linux-wireless
  Cc: Alejandro Colomar, Rajkumar Manoharan, John W. Linville,
	Toke Høiland-Jørgensen

This only worked by chance, because all callers of this macro used the
same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \

Fixes: c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")
Cc: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---

Hi!

I haven't build-tested the patch.  It should obviously work, but please
check.  I just realized about it while doing something else, and thought
I should send a quick fix.

Have a lovely night!
Alex


 drivers/net/wireless/ath/ath9k/ath9k.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 6e38aa7351e3..e8635bf81f9d 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -443,7 +443,7 @@ ath_node_to_tid(struct ath_node *an, u8 tidno)
 
 #define case_rtn_string(val) case val: return #val
 
-#define ath_for_each_chanctx(_sc, _ctx)                             \
+#define ath_for_each_chanctx(sc, ctx)                               \
 	for (ctx = &sc->chanctx[0];                                 \
 	     ctx <= &sc->chanctx[ARRAY_SIZE(sc->chanctx) - 1];      \
 	     ctx++)

Range-diff against v0:
-:  ------------ > 1:  6ab107cf786f wifi: ath9k: Fix typo
-- 
2.51.0


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

end of thread, other threads:[~2026-02-26 21:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-21 22:25 [PATCH v1] wifi: ath9k: Fix typo Alejandro Colomar
2026-02-23 15:17 ` Toke Høiland-Jørgensen
2026-02-24 18:45   ` Jeff Johnson
2026-02-24 21:27     ` Alejandro Colomar
2026-02-24 21:34       ` Jeff Johnson
2026-02-24 22:55         ` Alejandro Colomar
2026-02-24 23:07           ` Jeff Johnson
2026-02-24 23:09             ` Jeff Johnson
2026-02-24 23:23               ` Alejandro Colomar
2026-02-25  0:04                 ` Jeff Johnson
2026-02-25  0:10                   ` Alejandro Colomar
2026-02-24 21:37       ` Greg KH
2026-02-24 22:52         ` Alejandro Colomar
2026-02-26 21:29 ` Jeff Johnson

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