Skip to contentSkip to conversation

wifi: fix typos in comments

PATCH Superseded Hemanth Selam 1 participant 5 messages Sep 7

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v2 cover wifi: fix typos in comments

Comment typos under wireless, split per component. Found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Comments only, no code
changes.

v1 went out with a bare [PATCH] and a "net:" subject prefix. As maintainer-netdev.rst asks, v2 designates the patches to a tree, and each subject now names the component it touches instead of "net:". The series is rebased onto that tree; the diff is unchanged.

v1: https://lore.kernel.org/all/[email protected]/

Hemanth Selam (4):
wifi: nl80211: vendor-cmd: intel: fix typo "firwmare" in comment
uapi: wireless: fix typos in comments
wifi: mac80211: fix typo "capabilties" in comment
wifi: mac80211: fix repeated word 'used' in comment

 include/net/mac80211.h                 | 2 +-
 include/uapi/linux/nl80211-vnd-intel.h | 2 +-
 include/uapi/linux/wireless.h          | 6 +++---
 net/mac80211/cfg.c                     | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
#1 lore raw

PATCH v2 1/4 wifi: nl80211: vendor-cmd: intel: fix typo "firwmare" in comment

Fix a typo in comments, found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5

---

Notes:
v2: designate the patch to wireless-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto wireless-next, diff unchanged.

v1: https://lore.kernel.org/all/[email protected]/

 include/uapi/linux/nl80211-vnd-intel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/nl80211-vnd-intel.h +1 -1
index 79ccc9401d50..602862503c2a 100644
@@ -37,7 +37,7 @@
  *	8) The CSME firmware grants ownership
  *	9) iwlmei tells iwlwifi to lift the RFKILL
  *	10) RFKILL OFF is reported to user space
- *	11) The host boots the device, loads the firwmare, and connects to a
+ *	11) The host boots the device, loads the firmware, and connects to a
  *	    specific BSSID without scanning including IP as fast as it can
  *	12) The host reports to the CSME firmware that there is a connection
  *	13) The TCP connection is preserved and the host has connectivity
#2 lore raw

PATCH v2 2/4 uapi: wireless: fix typos in comments

In reply to Hemanth Selam

Fix typos in comments, found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5

---

Notes:
v2: designate the patch to wireless-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto wireless-next, diff unchanged.

v1: https://lore.kernel.org/all/[email protected]/

 include/uapi/linux/wireless.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/uapi/linux/wireless.h +3 -3
index 3c2ad5fae17f..28ae6bb0d5e3 100644
@@ -301,7 +301,7 @@
 #define SIOCSIWPOWER	0x8B2C		/* set Power Management settings */
 #define SIOCGIWPOWER	0x8B2D		/* get Power Management settings */
 
-/* WPA : Generic IEEE 802.11 informatiom element (e.g., for WPA/RSN/WMM).
+/* WPA : Generic IEEE 802.11 information element (e.g., for WPA/RSN/WMM).
  * This ioctl uses struct iw_point and data buffer that includes IE id and len
  * fields. More than one IE may be included in the request. Setting the generic
  * IE to empty buffer (len=0) removes the generic IE from the driver. Drivers
@@ -681,7 +681,7 @@ struct iw_param {
   __s32		value;		/* The value of the parameter itself */
   __u8		fixed;		/* Hardware should not use auto select */
   __u8		disabled;	/* Disable the feature */
-  __u16		flags;		/* Various specifc flags (if any) */
+  __u16		flags;		/* Various specific flags (if any) */
 };
 
 /*
@@ -1083,7 +1083,7 @@ struct iw_event {
 	union iwreq_data	u;		/* IOCTL fixed payload */
 };
 
-/* Size of the Event prefix (including padding and alignement junk) */
+/* Size of the Event prefix (including padding and alignment junk) */
 #define IW_EV_LCP_LEN	(sizeof(struct iw_event) - sizeof(union iwreq_data))
 /* Size of the various events */
 #define IW_EV_CHAR_LEN	(IW_EV_LCP_LEN + IFNAMSIZ)
#3 lore raw

PATCH v2 3/4 wifi: mac80211: fix typo "capabilties" in comment

In reply to Hemanth Selam

Fix a typo in comments, found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5

---

Notes:
v2: designate the patch to wireless-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto wireless-next, diff unchanged.

v1: https://lore.kernel.org/all/[email protected]/

 net/mac80211/cfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/cfg.c +1 -1
index 23f4f9ec86d0..0ce7a7ab769c 100644
@@ -2870,7 +2870,7 @@ static int ieee80211_change_station(struct wiphy *wiphy,
 		}
 	}
 
-	/* NAN capabilties should not change */
+	/* NAN capabilities should not change */
 	if (statype == CFG80211_STA_NAN_DATA &&
 	    sta->deflink.pub->ht_cap.ht_supported &&
 	    (params->link_sta_params.ht_capa ||
#4 lore raw

PATCH v2 4/4 wifi: mac80211: fix repeated word 'used' in comment

In reply to Hemanth Selam

Drop the second 'used', reported by checkpatch.pl as a repeated word. Only touches a comment, no code changes.

Assisted-by Cursor:claude-opus-5

---

Notes:
v2: designate the patch to wireless-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto wireless-next, diff unchanged.

v1: https://lore.kernel.org/all/[email protected]/

 include/net/mac80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/mac80211.h +1 -1
index 7bb4618065b6..9594856a23e2 100644
@@ -257,7 +257,7 @@ struct ieee80211_chan_req {
  * @min_def: the minimum channel definition currently required.
  * @ap: the channel definition the AP actually is operating as,
  *	for use with (wider bandwidth) OFDMA
- * @radio_idx: index of the wiphy radio used used for this channel
+ * @radio_idx: index of the wiphy radio used for this channel
  * @rx_chains_static: The number of RX chains that must always be
  *	active on the channel to receive MIMO transmissions
  * @rx_chains_dynamic: The number of RX chains that must be enabled