git: 2eab1f605f87 - main - net80211: document the 802.11 specification for ieee80211_getcapinfo()

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Fri, 28 Mar 2025 19:04:25 UTC
The branch main has been updated by adrian:

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

commit 2eab1f605f8712e2c2377d4f1e62bcaa525fc6c7
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2025-03-26 03:36:08 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-03-28 19:00:04 +0000

    net80211: document the 802.11 specification for ieee80211_getcapinfo()
    
    Add a reference to the 802.11 specification for the management frame
    capability info field.
    
    Differential Revision:  https://reviews.freebsd.org/D49513
    Reviewed by:    thj
---
 sys/net80211/ieee80211_output.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 44903ed366fd..f2f89d2d9d7c 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -2649,6 +2649,12 @@ ieee80211_send_probereq(struct ieee80211_node *ni,
 
 /*
  * Calculate capability information for mgt frames.
+ *
+ * This fills out the 16 bit capability field in various management
+ * frames for non-DMG STAs.  DMG STAs are not supported.
+ *
+ * See 802.11-2020 9.4.1.4 (Capability Information Field) for the
+ * field definitions.
  */
 uint16_t
 ieee80211_getcapinfo(struct ieee80211vap *vap, struct ieee80211_channel *chan)