]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mac80211, cfg80211: miscellaneous spelling fixes
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 13 Sep 2024 08:49:19 +0000 (11:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Oct 2024 19:52:09 +0000 (21:52 +0200)
Correct spelling here and there as suggested by codespell.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://patch.msgid.link/20240913084919.118862-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
19 files changed:
net/mac80211/agg-tx.c
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mesh_plink.c
net/mac80211/mesh_sync.c
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/sta_info.h
net/mac80211/tkip.c
net/mac80211/tx.c
net/mac80211/util.c
net/mac80211/vht.c
net/wireless/chan.c
net/wireless/nl80211.c
net/wireless/radiotap.c
net/wireless/reg.c
net/wireless/util.c
net/wireless/wext-compat.c
net/wireless/wext-core.c

index 1c18b862ef8c7656726c8f8c9b8134a690cadd16..04cb45cfb3107c498c2c81334e5119aa32e8afd9 100644 (file)
@@ -797,7 +797,7 @@ void ieee80211_start_tx_ba_cb(struct sta_info *sta, int tid,
 
        if (!test_bit(HT_AGG_STATE_SENT_ADDBA, &tid_tx->state)) {
                ieee80211_send_addba_with_timeout(sta, tid_tx);
-               /* RESPONSE_RECEIVED state whould trigger the flow again */
+               /* RESPONSE_RECEIVED state would trigger the flow again */
                return;
        }
 
index cca6d14084d2142c00b2c5dab9da78422b684ea9..a155e418d26b03850b723f37bbaddad425ea95a7 100644 (file)
@@ -462,7 +462,7 @@ static void ieee80211_chan_bw_change(struct ieee80211_local *local,
                                continue;
 
                        /* vif changed to narrow BW and narrow BW for station wasn't
-                        * requested or vise versa */
+                        * requested or vice versa */
                        if ((new_sta_bw < link_sta->pub->bandwidth) == !narrowed)
                                continue;
 
@@ -1118,7 +1118,7 @@ ieee80211_replace_chanctx(struct ieee80211_local *local,
                 *
                 * Consider ctx1..3, link1..6, each ctx has 2 links. link1 and
                 * link2 from ctx1 request new different chandefs starting 2
-                * in-place reserations with ctx4 and ctx5 replacing ctx1 and
+                * in-place reservations with ctx4 and ctx5 replacing ctx1 and
                 * ctx2 respectively. Next link5 and link6 from ctx3 reserve
                 * ctx4. If link3 and link4 remain on ctx2 as they are then this
                 * fails unless `replace_ctx` from ctx5 is replaced with ctx3.
index 3f4d2773b82855567d877f3ae1cae88776bd389c..afb867dc6b2460dc93948d387ea3c9357f62d09b 100644 (file)
@@ -2452,7 +2452,7 @@ static inline bool ieee80211_can_run_worker(struct ieee80211_local *local)
        /*
         * If quiescing is set, we are racing with __ieee80211_suspend.
         * __ieee80211_suspend flushes the workers after setting quiescing,
-        * and we check quiescing / suspended before enqueing new workers.
+        * and we check quiescing / suspended before enqueuing new workers.
         * We should abort the worker to avoid the races below.
         */
        if (local->quiescing)
index f94e4be0be12ca3cf2976165c7b9e170716d4abf..0460102c8796258e6bfeb0acb465abddbac6eb16 100644 (file)
@@ -1482,7 +1482,7 @@ static void ieee80211_mesh_rx_bcn_presp(struct ieee80211_sub_if_data *sdata,
        if (!elems)
                return;
 
-       /* ignore non-mesh or secure / unsecure mismatch */
+       /* ignore non-mesh or secure / insecure mismatch */
        if ((!elems->mesh_id || !elems->mesh_config) ||
            (elems->rsn && sdata->u.mesh.security == IEEE80211_MESH_SEC_NONE) ||
            (!elems->rsn && sdata->u.mesh.security != IEEE80211_MESH_SEC_NONE))
index 8f2b492a9fe9822f4cee34f6579f1122e81ff02d..42286aa3623c995a89bc9a5bea473f0753e3b7db 100644 (file)
@@ -667,7 +667,7 @@ void mesh_plink_timer(struct timer_list *t)
        /*
         * This STA is valid because sta_info_destroy() will
         * del_timer_sync() this timer after having made sure
-        * it cannot be readded (by deleting the plink.)
+        * it cannot be re-added (by deleting the plink.)
         */
        sta = mesh->plink_sta;
 
index 8cf3f395f52f7fa6b86a0878c572a8a22d2ca90c..3a66b4cefca7bd9ee205ecced24efe7c5c52139a 100644 (file)
@@ -175,7 +175,7 @@ static void mesh_sync_offset_adjust_tsf(struct ieee80211_sub_if_data *sdata,
        spin_lock_bh(&ifmsh->sync_offset_lock);
 
        if (ifmsh->sync_offset_clockdrift_max > TOFFSET_MINIMUM_ADJUSTMENT) {
-               /* Since ajusting the tsf here would
+               /* Since adjusting the tsf here would
                 * require a possibly blocking call
                 * to the driver tsf setter, we punt
                 * the tsf adjustment to the mesh tasklet
index 6bf3b4444a43ea81288f1e22caef22293f4a9946..706cbc99f718bb8fc55dbee143b47bdbadd20bea 100644 (file)
@@ -1053,7 +1053,7 @@ minstrel_ht_refill_sample_rates(struct minstrel_ht_sta *mi)
  *  - max_prob_rate must use only one stream, as a tradeoff between delivery
  *    probability and throughput during strong fluctuations
  *  - as long as the max prob rate has a probability of more than 75%, pick
- *    higher throughput rates, even if the probablity is a bit lower
+ *    higher throughput rates, even if the probability is a bit lower
  */
 static void
 minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
index 9195d5a2de0a865c6992e47aa964a747e6787ca2..9f89fb5bee37efe6ef2d5ba8a94bb05e2c764aae 100644 (file)
@@ -169,7 +169,7 @@ struct sta_info;
  * @buf_size: reorder buffer size at receiver
  * @failed_bar_ssn: ssn of the last failed BAR tx attempt
  * @bar_pending: BAR needs to be re-sent
- * @amsdu: support A-MSDU withing A-MDPU
+ * @amsdu: support A-MSDU within A-MDPU
  * @ssn: starting sequence number of the session
  *
  * This structure's lifetime is managed by RCU, assignments to
index e7f57bb18f6e00255e75a465cd7ddb1c7282e6f4..7aac84cec0444f1cd82263bf6e3da772e9d02ec6 100644 (file)
@@ -313,7 +313,7 @@ int ieee80211_tkip_decrypt_data(struct arc4_ctx *ctx,
                 * Record previously received IV, will be copied into the
                 * key information after MIC verification. It is possible
                 * that we don't catch replays of fragments but that's ok
-                * because the Michael MIC verication will then fail.
+                * because the Michael MIC verification will then fail.
                 */
                *out_iv32 = iv32;
                *out_iv16 = iv16;
index a9ee869822592969c2b7916fc1f06779f72870b2..eedb2c5123ab9afef5cdca0ca816a60b40617190 100644 (file)
@@ -6214,7 +6214,7 @@ int ieee80211_tx_control_port(struct wiphy *wiphy, struct net_device *dev,
                goto start_xmit;
 
        /* update QoS header to prioritize control port frames if possible,
-        * priorization also happens for control port frames send over
+        * prioritization also happens for control port frames send over
         * AF_PACKET
         */
        rcu_read_lock();
index f0db60878321ae33a9073393f6b96e72e94d8e4f..bd93de637f9441ccdc18938277973830e8baf94b 100644 (file)
@@ -1010,7 +1010,7 @@ void ieee80211_set_wmm_default(struct ieee80211_link_data *link,
        else
                aCWmin = 15;
 
-       /* Confiure old 802.11b/g medium access rules. */
+       /* Configure old 802.11b/g medium access rules. */
        qparam.cw_max = aCWmax;
        qparam.cw_min = aCWmin;
        qparam.txop = 0;
index bf6ef45af757dce26b965298bab00768dd6c98ed..eafe47bf201a36a91273a7e862cc1699df35ea34 100644 (file)
@@ -280,10 +280,10 @@ ieee80211_vht_cap_ie_to_sta_vht_cap(struct ieee80211_sub_if_data *sdata,
        /*
         * This is a workaround for VHT-enabled STAs which break the spec
         * and have the VHT-MCS Rx map filled in with value 3 for all eight
-        * spacial streams, an example is AR9462.
+        * spatial streams, an example is AR9462.
         *
         * As per spec, in section 22.1.1 Introduction to the VHT PHY
-        * A VHT STA shall support at least single spactial stream VHT-MCSs
+        * A VHT STA shall support at least single spatial stream VHT-MCSs
         * 0 to 7 (transmit and receive) in all supported channel widths.
         */
        if (vht_cap->vht_mcs.rx_mcs_map == cpu_to_le16(0xFFFF)) {
index e579d7e1425fe91b8060586b5e4d54cacc4e209f..afd86f7c66cefe863cf7e7706480a2fdc0d15410 100644 (file)
@@ -289,7 +289,7 @@ static bool cfg80211_valid_center_freq(u32 center,
 
        /*
         * Valid channels are packed from lowest frequency towards higher ones.
-        * So test that the lower frequency alignes with one of these steps.
+        * So test that the lower frequency aligns with one of these steps.
         */
        return (center - bw / 2 - 5945) % step == 0;
 }
index 9ab777e0bd4d3493619ed73b279a80a84ce476e2..d51bcb4e9108c99d973b0b7744ae62c3135e4fc9 100644 (file)
@@ -12446,7 +12446,7 @@ static int nl80211_del_pmksa(struct sk_buff *skb, struct genl_info *info)
        if (info->attrs[NL80211_ATTR_MAC]) {
                pmksa.bssid = nla_data(info->attrs[NL80211_ATTR_MAC]);
        } else if (info->attrs[NL80211_ATTR_SSID]) {
-               /* SSID based pmksa flush suppported only for FILS,
+               /* SSID based pmksa flush supported only for FILS,
                 * OWE/SAE OFFLOAD cases
                 */
                if (info->attrs[NL80211_ATTR_FILS_CACHE_ID] &&
@@ -15498,7 +15498,7 @@ static int nl80211_add_tx_ts(struct sk_buff *skb, struct genl_info *info)
        if (tsid >= IEEE80211_FIRST_TSPEC_TSID) {
                /* TODO: handle 802.11 TSPEC/admission control
                 * need more attributes for that (e.g. BA session requirement);
-                * change the WMM adminssion test above to allow both then
+                * change the WMM admission test above to allow both then
                 */
                return -EINVAL;
        }
index ae2e1a8964611e3138623b5e9885ed079ab40674..619187e229b42c9705649831ecc939aa98de5fe4 100644 (file)
@@ -200,7 +200,7 @@ static void find_ns(struct ieee80211_radiotap_iterator *iterator,
  * present fields.  @this_arg can be changed by the caller (eg,
  * incremented to move inside a compound argument like
  * IEEE80211_RADIOTAP_CHANNEL).  The args pointed to are in
- * little-endian format whatever the endianess of your CPU.
+ * little-endian format whatever the endianness of your CPU.
  *
  * Alignment Gotcha:
  * You must take care when dereferencing iterator.this_arg
index 6489ba943a633dd43a023f15b4dfc512d3975c7f..1df65a5a44f7a1170ca6480b8f9c8e6d998bd85c 100644 (file)
@@ -1147,7 +1147,7 @@ static const struct ieee80211_regdomain *reg_get_regdomain(struct wiphy *wiphy)
 
        /*
         * Follow the driver's regulatory domain, if present, unless a country
-        * IE has been processed or a user wants to help complaince further
+        * IE has been processed or a user wants to help compliance further
         */
        if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE &&
            lr->initiator != NL80211_REGDOM_SET_BY_USER &&
index f49b55724f8341440a1495ebe05e751a8993bc1c..93a9c32418a6ccb5e950a3609a3c6d25df4af3ac 100644 (file)
@@ -743,7 +743,7 @@ __ieee80211_amsdu_copy(struct sk_buff *skb, unsigned int hlen,
                return NULL;
 
        /*
-        * When reusing framents, copy some data to the head to simplify
+        * When reusing fragments, copy some data to the head to simplify
         * ethernet header handling and speed up protocol header processing
         * in the stack later.
         */
index 2371069f3c4325920766754314b829e60788b25a..cd9f8f6e298b0e345b2c1ae3f1b8218ecd45215f 100644 (file)
@@ -1204,7 +1204,7 @@ static int cfg80211_wext_siwpower(struct net_device *dev,
                switch (wrq->flags & IW_POWER_MODE) {
                case IW_POWER_ON:       /* If not specified */
                case IW_POWER_MODE:     /* If set all mask */
-               case IW_POWER_ALL_R:    /* If explicitely state all */
+               case IW_POWER_ALL_R:    /* If explicitly state all */
                        ps = true;
                        break;
                default:                /* Otherwise we ignore */
index 838ad6541a17d8acaa531aa62a8acceb39c959ad..3bb04b05c5cea79a83904198a7db4411f69aea4e 100644 (file)
@@ -1159,7 +1159,7 @@ char *iwe_stream_add_event(struct iw_request_info *info, char *stream,
        /* Check if it's possible */
        if (likely((stream + event_len) < ends)) {
                iwe->len = event_len;
-               /* Beware of alignement issues on 64 bits */
+               /* Beware of alignment issues on 64 bits */
                memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN);
                memcpy(stream + lcp_len, &iwe->u,
                       event_len - lcp_len);