Bug 286448 - net80211: Minor mistake in IEEE80211_NOTE for ieee80211_fix_rate
Summary: net80211: Minor mistake in IEEE80211_NOTE for ieee80211_fix_rate
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 15.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Bjoern A. Zeeb
URL:
Keywords:
Depends on:
Blocks: PRs, net80211
  Show dependency tree / graph
 
Reported: 2025-04-29 15:24 UTC by Yichen Chai
Modified: 2026-01-17 13:47 UTC (History)
1 user (show)

See Also:
bz: mfc-stable15+
bz: mfc-stable14+


Attachments
Fix (559 bytes, patch)
2025-04-29 15:25 UTC, Yichen Chai
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yichen Chai 2025-04-29 15:24:53 UTC
I think that the debug print here has a mismatch of format string and parameters:

https://github.com/freebsd/freebsd-src/blob/578cbd03f7a53eb23b71b560f8816f84f5a1461b/sys/net80211/ieee80211_proto.c#L749

Attached is a proposed (untested) patch.
Comment 1 Yichen Chai 2025-04-29 15:25:21 UTC
Created attachment 259996 [details]
Fix
Comment 2 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-04-29 23:30:46 UTC
Thanks for the patch; I've queued this one.
Comment 3 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-01-14 18:48:26 UTC
Sorry, this slipped last year.
I just found it again and am about to push it in once a compile finishes.
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-01-14 18:52:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=75556c7e999e9095ce71558ae61f49c1ba61a192

commit 75556c7e999e9095ce71558ae61f49c1ba61a192
Author:     Yichen Chai <yichen.chai@gmail.com>
AuthorDate: 2026-01-14 18:44:08 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-14 18:51:11 +0000

    net80211: fix arguments to IEEE80211_NOTE in ieee80211_fix_rate

    Fix the arguments to the debug statement.

    (slightly adjusted from the original submission by bz)

    PR:             286448
    MFC after:      3 days

 sys/net80211/ieee80211_proto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-01-17 13:10:11 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e93d2f39d72e5542781165c368343d7d73643e9

commit 2e93d2f39d72e5542781165c368343d7d73643e9
Author:     Yichen Chai <yichen.chai@gmail.com>
AuthorDate: 2026-01-14 18:44:08 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-17 07:51:24 +0000

    net80211: fix arguments to IEEE80211_NOTE in ieee80211_fix_rate

    Fix the arguments to the debug statement.

    (slightly adjusted from the original submission by bz)

    PR:             286448

    (cherry picked from commit 75556c7e999e9095ce71558ae61f49c1ba61a192)

 sys/net80211/ieee80211_proto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-01-17 13:17:13 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=dd1d6a06542cb07acf23682d77eed1a093226d76

commit dd1d6a06542cb07acf23682d77eed1a093226d76
Author:     Yichen Chai <yichen.chai@gmail.com>
AuthorDate: 2026-01-14 18:44:08 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-17 13:15:58 +0000

    net80211: fix arguments to IEEE80211_NOTE in ieee80211_fix_rate

    Fix the arguments to the debug statement.

    (slightly adjusted from the original submission by bz)

    PR:             286448

    (cherry picked from commit 75556c7e999e9095ce71558ae61f49c1ba61a192)
    (cherry picked from commit 2e93d2f39d72e5542781165c368343d7d73643e9)

 sys/net80211/ieee80211_proto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 7 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-01-17 13:17:37 UTC
Merged to relevant stable branches. Thanks a lot for reporting and the change.
Sorry it took so long to get it in.
Comment 8 Yichen Chai 2026-01-17 13:47:06 UTC
No worries, just glad to have helped!