Skip to contentSkip to conversation

mac80211: fix ieee80211_he_oper_size() comment

PATCH Superseded John Crispin 2 participants 2 messages Jun 17, 2019 – Jun 18, 2019

Subsystems (2)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: fix ieee80211_he_oper_size() comment

Johannes mentioned that the comment should not reference mac80211 as other subsystems might call the helper.

---
 include/linux/ieee80211.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/ieee80211.h +2 -2
index e7d23a2cacd8..9b62c3744ed5 100644
@@ -2062,8 +2062,8 @@ ieee80211_he_ppe_size(u8 ppe_thres_hdr, const u8 *phy_cap_info)
  * ieee80211_he_oper_size - calculate 802.11ax HE Operations IE size
  * @he_oper_ie: byte data of the He Operations IE, stating from the the byte
  *	after the ext ID byte. It is assumed that he_oper_ie has at least
- *	sizeof(struct ieee80211_he_operation) bytes, checked already in
- *	ieee802_11_parse_elems_crc()
+ *	sizeof(struct ieee80211_he_operation) bytes, the caller must have
+ *	validated this.
  * @return the actual size of the IE data (not including header), or 0 on error
  */
 static inline u8
Signature · 7 lines
2.20.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 5 lines · John Crispin

Johannes mentioned that the comment should not reference mac80211 as other subsystems might call the helper.

Patch applied to ath11k-bringup branch of ath.git, thanks.

a2a012fb1b64 NOTUPSTREAM: mac80211: fix ieee80211_he_oper_size() comment

Signature · 9 lines
https://patchwork.kernel.org/patch/10999233/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k