]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: ath9k: miscellaneous spelling fixes
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 11 Nov 2024 10:47:24 +0000 (13:47 +0300)
committerJeff Johnson <quic_jjohnson@quicinc.com>
Wed, 13 Nov 2024 00:44:54 +0000 (16:44 -0800)
Correct spelling here and there as suggested by codespell.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20241111104724.484586-1-dmantipov@yandex.ru
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
15 files changed:
drivers/net/wireless/ath/ath9k/antenna.c
drivers/net/wireless/ath/ath9k/ar9002_hw.c
drivers/net/wireless/ath/ath9k/ar9003_hw.c
drivers/net/wireless/ath/ath9k/ar9003_mci.c
drivers/net/wireless/ath/ath9k/ar9003_phy.h
drivers/net/wireless/ath/ath9k/channel.c
drivers/net/wireless/ath/ath9k/common-spectral.c
drivers/net/wireless/ath/ath9k/dfs.c
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/mac.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/wow.c
drivers/net/wireless/ath/ath9k/xmit.c

index acc84e6711b0e10dfcab53b02e0afaa5b077c1ff..e5e274bc9e68732a3531ece795e9f483fe944284 100644 (file)
@@ -193,7 +193,7 @@ static void ath_lnaconf_alt_good_scan(struct ath_ant_comb *antcomb,
 static void ath_ant_set_alt_ratio(struct ath_ant_comb *antcomb,
                                  struct ath_hw_antcomb_conf *conf)
 {
-       /* set alt to the conf with maximun ratio */
+       /* set alt to the conf with maximum ratio */
        if (antcomb->first_ratio && antcomb->second_ratio) {
                if (antcomb->rssi_second > antcomb->rssi_third) {
                        /* first alt*/
index d08ea0b28530ee247b80ea8b903c2718819a83f0..b262244800410c2ce17a32f208c5fe329ed705dc 100644 (file)
@@ -395,7 +395,7 @@ static void ar9002_hw_init_hang_checks(struct ath_hw *ah)
                ah->config.hw_hang_checks |= HW_MAC_HANG;
 }
 
-/* Sets up the AR5008/AR9001/AR9002 hardware familiy callbacks */
+/* Sets up the AR5008/AR9001/AR9002 hardware family callbacks */
 int ar9002_hw_attach_ops(struct ath_hw *ah)
 {
        struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
index e9bd13eeee92fd89edab2ce46f9b3bb77fe16721..6595eca7499773fcbcdb67fceced4b0b6f672c72 100644 (file)
@@ -1170,7 +1170,7 @@ exit:
        return false;
 }
 
-/* Sets up the AR9003 hardware familiy callbacks */
+/* Sets up the AR9003 hardware family callbacks */
 void ar9003_hw_attach_ops(struct ath_hw *ah)
 {
        struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
index 2b9c07961cd710b5896b99bb7a426189e96d7d13..3f0543e55d9bab688e876e36f4740c1f512cd59a 100644 (file)
@@ -637,7 +637,7 @@ static u32 ar9003_mci_wait_for_gpm(struct ath_hw *ah, u8 gpm_type,
                 * same time. Since BT's calibration doesn't happen
                 * that often, we'll let BT completes calibration then
                 * we continue to wait for cal_grant from BT.
-                * Orginal: Wait BT_CAL_GRANT.
+                * Original: Wait BT_CAL_GRANT.
                 * New: Receive BT_CAL_REQ -> send WLAN_CAL_GRANT->wait
                 * BT_CAL_DONE -> Wait BT_CAL_GRANT.
                 */
@@ -747,7 +747,7 @@ int ar9003_mci_end_reset(struct ath_hw *ah, struct ath9k_channel *chan,
         * BT is sleeping. Check if BT wakes up during
         * WLAN calibration. If BT wakes up during
         * WLAN calibration, need to go through all
-        * message exchanges again and recal.
+        * message exchanges again and recalibrate.
         */
        REG_WRITE(ah, AR_MCI_INTERRUPT_RX_MSG_RAW,
                  (AR_MCI_INTERRUPT_RX_MSG_REMOTE_RESET |
index ad72a30b67c3b8afb468f6d21f79e949a5d1bae6..e13873fb8e2fe01ef767ff7e2a690a500a2f4b5b 100644 (file)
 
 
 /*
- * MRC Feild Definitions
+ * MRC Field Definitions
  */
 #define AR_PHY_SGI_DSC_MAN   0x0007FFF0
 #define AR_PHY_SGI_DSC_MAN_S 4
index 571062f2e82a7ba39f3bffb569168f3a5007e016..02237d106f8c60cd162dd2408aab25fcb955e87f 100644 (file)
@@ -17,7 +17,7 @@
 #include "ath9k.h"
 
 /* Set/change channels.  If the channel is really being changed, it's done
- * by reseting the chip.  To accomplish this we must first cleanup any pending
+ * by resetting the chip.  To accomplish this we must first cleanup any pending
  * DMA, then restart stuff.
  */
 static int ath_set_channel(struct ath_softc *sc)
index 4b27445a5fb87d4c2b7167c270b99a2d8c588a7d..628eeec4b82fe8c6d21d2f3d6fcd339e41f36e65 100644 (file)
@@ -734,7 +734,7 @@ void ath9k_cmn_spectral_scan_trigger(struct ath_common *common,
                                 ATH9K_RX_FILTER_PHYRADAR |
                                 ATH9K_RX_FILTER_PHYERR);
 
-       /* TODO: usually this should not be neccesary, but for some reason
+       /* TODO: usually this should not be necessary, but for some reason
         * (or in some mode?) the trigger must be called after the
         * configuration, otherwise the register will have its values reset
         * (on my ar9220 to value 0x01002310)
index 3689e12db9f74f91489dd07eca5d065d488c2a40..2fb73a5e1d51493c1e211d8a1a4bcc215446d07f 100644 (file)
@@ -79,7 +79,7 @@ static int ath9k_get_max_index_ht40(struct ath9k_dfs_fft_40 *fft,
        const int DFS_UPPER_BIN_OFFSET = 64;
        /* if detected radar on both channels, select the significant one */
        if (is_ctl && is_ext) {
-               /* first check wether channels have 'strong' bins */
+               /* first check whether channels have 'strong' bins */
                is_ctl = fft_bitmap_weight(fft->lower_bins) != 0;
                is_ext = fft_bitmap_weight(fft->upper_bins) != 0;
 
index 7265766cddbdebbac8880e01b440d4c08c8b2132..fe9abe8cd268fa409f37f43efd9a94b6a2751895 100644 (file)
@@ -1198,7 +1198,7 @@ static int ath9k_hif_request_firmware(struct hif_device_usb *hif_dev,
                        filename = FIRMWARE_AR9271;
 
                /* expected fw locations:
-                * - htc_9271.fw   (stable version 1.3, depricated)
+                * - htc_9271.fw   (stable version 1.3, deprecated)
                 */
                snprintf(hif_dev->fw_name, sizeof(hif_dev->fw_name),
                         "%s", filename);
index e2bef099adb30ac173fde8393be86847d3a18236..a25eacabc664abc80257f94f1aab8f9db17f8e50 100644 (file)
@@ -2149,7 +2149,7 @@ static void ath9k_set_power_network_sleep(struct ath_hw *ah)
 
                /* When chip goes into network sleep, it could be waken
                 * up by MCI_INT interrupt caused by BT's HW messages
-                * (LNA_xxx, CONT_xxx) which chould be in a very fast
+                * (LNA_xxx, CONT_xxx) which could be in a very fast
                 * rate (~100us). This will cause chip to leave and
                 * re-enter network sleep mode frequently, which in
                 * consequence will have WLAN MCI HW to generate lots of
@@ -2544,7 +2544,7 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
 
        pCap->tx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_TX_MASK);
        /*
-        * For AR9271 we will temporarilly uses the rx chainmax as read from
+        * For AR9271 we will temporarily use the rx chainmax as read from
         * the EEPROM.
         */
        if ((ah->hw_version.devid == AR5416_DEVID_PCI) &&
index 450ab19b1d4e8436b2db7828fd89f53e17e07b05..e2cbf3f00da075a31f1d744c9a11b0460dfeaa33 100644 (file)
@@ -282,7 +282,7 @@ enum ath9k_hw_caps {
  * an exact user defined pattern or de-authentication/disassoc pattern.
  * @ATH9K_HW_WOW_PATTERN_MATCH_DWORD: device requires the first four
  * bytes of the pattern for user defined pattern, de-authentication and
- * disassociation patterns for all types of possible frames recieved
+ * disassociation patterns for all types of possible frames received
  * of those types.
  */
 
index f03d792732da72139c24679f3ea7d4f9e55398aa..16203e7ecf290632290107c1bd9f06eaef07eb1a 100644 (file)
@@ -251,7 +251,7 @@ struct ath_desc {
  * when the descriptor is specifically marked to generate
  * an interrupt with this flag. Descriptors should be
  * marked periodically to insure timely replenishing of the
- * supply needed for sending frames. Defering interrupts
+ * supply needed for sending frames. Deferring interrupts
  * reduces system load and potentially allows more concurrent
  * work to be done but if done to aggressively can cause
  * senders to backup. When the hardware queue is left too
index b92c89dad8deac7281e0165c9e1a566ba99ece65..dd79107828588554c4fd7fd7f2a380487f0d2167 100644 (file)
@@ -1001,7 +1001,7 @@ static bool ath9k_uses_beacons(int type)
 static void ath9k_vif_iter_set_beacon(struct ath9k_vif_iter_data *iter_data,
                                      struct ieee80211_vif *vif)
 {
-       /* Use the first (configured) interface, but prefering AP interfaces. */
+       /* Use the first (configured) interface, but preferring AP interfaces. */
        if (!iter_data->primary_beacon_vif) {
                iter_data->primary_beacon_vif = vif;
        } else {
index 8d0b1730a9d5b4e0232f8392055215892fb58e05..ed4152cd44f0e75eb171fd4f59fb4ccbef7813be 100644 (file)
@@ -60,7 +60,7 @@ static int ath9k_wow_add_disassoc_deauth_pattern(struct ath_softc *sc)
        memset(dis_deauth_mask, 0, MAX_PATTERN_SIZE);
 
        /*
-        * Create Dissassociate / Deauthenticate packet filter
+        * Create Disassociate / Deauthenticate packet filter
         *
         *     2 bytes        2 byte    6 bytes   6 bytes  6 bytes
         *  +--------------+----------+---------+--------+--------+----
@@ -70,7 +70,7 @@ static int ath9k_wow_add_disassoc_deauth_pattern(struct ath_softc *sc)
         * The above is the management frame format for disassociate/
         * deauthenticate pattern, from this we need to match the first byte
         * of 'Frame Control' and DA, SA, and BSSID fields
-        * (skipping 2nd byte of FC and Duration feild.
+        * (skipping 2nd byte of FC and Duration field.
         *
         * Disassociate pattern
         * --------------------
@@ -225,7 +225,7 @@ int ath9k_suspend(struct ieee80211_hw *hw,
        ath9k_stop_btcoex(sc);
 
        /*
-        * Enable wake up on recieving disassoc/deauth
+        * Enable wake up on receiving disassoc/deauth
         * frame by default.
         */
        ret = ath9k_wow_add_disassoc_deauth_pattern(sc);
index 35aa47a9db90b3399cae67fd3f9e07b965904359..0a24439dd30d7274e860db1c23d55f465087533e 100644 (file)
@@ -557,7 +557,7 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq,
                        /*
                         * AR5416 can become deaf/mute when BA
                         * issue happens. Chip needs to be reset.
-                        * But AP code may have sychronization issues
+                        * But AP code may have synchronization issues
                         * when perform internal reset in this routine.
                         * Only enable reset in STA mode for now.
                         */