mac80211: fix some spelling mistakes
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 7 Jun 2021 15:00:47 +0000 (23:00 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 10:36:32 +0000 (12:36 +0200)
Fix some spelling mistakes in comments:
freeed  ==> freed
addreses  ==> addresses
containging  ==> containing
capablity  ==> capability
sucess  ==> success
atleast  ==> at least

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20210607150047.2855962-1-zhengyongjun3@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c
net/mac80211/mesh_pathtbl.c
net/mac80211/mesh_plink.c
net/mac80211/mlme.c
net/mac80211/rc80211_minstrel_ht.c

index 40492d1..77080b4 100644 (file)
@@ -134,7 +134,7 @@ struct mesh_path {
  * gate's mpath may or may not be resolved and active.
  * @gates_lock: protects updates to known_gates
  * @rhead: the rhashtable containing struct mesh_paths, keyed by dest addr
- * @walk_head: linked list containging all mesh_path objects
+ * @walk_head: linked list containing all mesh_path objects
  * @walk_lock: lock protecting walk_head
  * @entries: number of entries in the table
  */
index 3db514c..a05b615 100644 (file)
@@ -1124,7 +1124,7 @@ enddiscovery:
  * forwarding information is found.
  *
  * Returns: 0 if the next hop was found and -ENOENT if the frame was queued.
- * skb is freeed here if no mpath could be allocated.
+ * skb is freed here if no mpath could be allocated.
  */
 int mesh_nexthop_resolve(struct ieee80211_sub_if_data *sdata,
                         struct sk_buff *skb)
index 620ecf9..efbefcb 100644 (file)
@@ -122,7 +122,7 @@ static void prepare_for_gate(struct sk_buff *skb, char *dst_addr,
                hdr = (struct ieee80211_hdr *) skb->data;
 
                /* we preserve the previous mesh header and only add
-                * the new addreses */
+                * the new addresses */
                mshdr = (struct ieee80211s_hdr *) (skb->data + hdrlen);
                mshdr->flags = MESH_FLAGS_AE_A5_A6;
                memcpy(mshdr->eaddr1, hdr->addr3, ETH_ALEN);
index aca26df..a691584 100644 (file)
@@ -150,7 +150,7 @@ out:
  * mesh STA in a MBSS. Three HT protection modes are supported for now, non-HT
  * mixed mode, 20MHz-protection and no-protection mode. non-HT mixed mode is
  * selected if any non-HT peers are present in our MBSS.  20MHz-protection mode
- * is selected if all peers in our 20/40MHz MBSS support HT and atleast one
+ * is selected if all peers in our 20/40MHz MBSS support HT and at least one
  * HT20 peer is present. Otherwise no-protection mode is selected.
  */
 static u32 mesh_set_ht_prot_mode(struct ieee80211_sub_if_data *sdata)
index 9b9f6ab..b3123e0 100644 (file)
@@ -585,7 +585,7 @@ static void ieee80211_add_vht_ie(struct ieee80211_sub_if_data *sdata,
                cap &= ~IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE;
 
        /*
-        * If some other vif is using the MU-MIMO capablity we cannot associate
+        * If some other vif is using the MU-MIMO capability we cannot associate
         * using MU-MIMO - this will lead to contradictions in the group-id
         * mechanism.
         * Ownership is defined since association request, in order to avoid
index 20f2e0b..72b44d4 100644 (file)
@@ -434,7 +434,7 @@ minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate,
        unsigned int nsecs = 0, overhead = mi->overhead;
        unsigned int ampdu_len = 1;
 
-       /* do not account throughput if sucess prob is below 10% */
+       /* do not account throughput if success prob is below 10% */
        if (prob_avg < MINSTREL_FRAC(10, 100))
                return 0;