From 58904294644d37f271f95ab9b93206155b602a80 Mon Sep 17 00:00:00 2001 From: proski Date: Fri, 26 Aug 2011 15:31:01 +0000 Subject: [PATCH] Fix typos found by codespell git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4166 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 4 ++-- ath/if_ath_hal_extensions.c | 2 +- ath/if_athvar.h | 2 +- ath_hal/ah.c | 2 +- ath_hal/ah_regdomain.c | 2 +- ath_hal/ar5211/ar5211_reset.c | 2 +- ath_hal/ar5212/ar2316.c | 4 ++-- ath_hal/ar5212/ar2317.c | 4 ++-- ath_hal/ar5212/ar2413.c | 4 ++-- ath_hal/ar5212/ar2425.c | 4 ++-- ath_hal/ar5212/ar5212_attach.c | 2 +- ath_hal/ar5212/ar5212_power.c | 2 +- ath_hal/ar5212/ar5212_reset.c | 2 +- ath_hal/ar5212/ar5413.c | 4 ++-- ath_hal/ar5416/ar5416_cal.c | 2 +- ath_hal/ar5416/ar5416_xmit.c | 2 +- ath_hal/ar5416/ar5416reg.h | 8 ++++---- ath_rate/minstrel/minstrel.c | 2 +- include/compat.h | 2 +- net80211/ieee80211.c | 2 +- net80211/ieee80211_input.c | 4 ++-- net80211/ieee80211_linux.c | 2 +- net80211/ieee80211_node.c | 2 +- net80211/ieee80211_node.h | 2 +- net80211/ieee80211_var.h | 2 +- net80211/ieee80211_wireless.c | 4 ++-- tools/wireless_copy.h | 2 +- 27 files changed, 38 insertions(+), 38 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 0b00c0e..5eacfc4 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -2677,7 +2677,7 @@ ath_bmiss_tasklet(TQUEUE_ARG data) struct ath_softc *sc = netdev_priv(dev); if (time_before(jiffies, sc->sc_ic.ic_bmiss_guard)) { - /* Beacon miss interrupt occured too short after last beacon + /* Beacon miss interrupt occurred too short after last beacon * timer configuration. Ignore it as it could be spurious. */ DPRINTF(sc, ATH_DEBUG_ANY, "Beacon miss ignored\n"); } else { @@ -10821,7 +10821,7 @@ ath_distance2timeout(struct ath_softc *sc, int distance) * being very careful or taking something into account that I can't * find in the specs. * - * XXX: Update based on emperical evidence (potentially save 15us per + * XXX: Update based on empirical evidence (potentially save 15us per * timeout). */ return ath_slottime2timeout(sc, ath_distance2slottime(sc, distance)); } diff --git a/ath/if_ath_hal_extensions.c b/ath/if_ath_hal_extensions.c index 218259a..7b94398 100644 --- a/ath/if_ath_hal_extensions.c +++ b/ath/if_ath_hal_extensions.c @@ -165,7 +165,7 @@ ath_hw_beacon_stop(struct ath_softc *sc) { * of beacon timer configuration (which we try to avoid) and due to unlucky * timing of local TSF updates (triggered by the reception of a beacon with the * same BSSID - something we can't avoid) the beacon timers can be up updated - * seperately, leaving one of them in the past, not beeing updated until the + * separately, leaving one of them in the past, not beeing updated until the * timers wrap around. due to the fact that the beacon interval does not fit * into the timer period (16 bit) a whole number of times the size of the ATIM * window can get bigger than desired. diff --git a/ath/if_athvar.h b/ath/if_athvar.h index f91ec8f..afafc23 100644 --- a/ath/if_athvar.h +++ b/ath/if_athvar.h @@ -701,7 +701,7 @@ struct ath_softc { unsigned int sc_useintmit:1; /* Interference mitigation enabled? */ unsigned int sc_txcont:1; /* Is continuous transmit enabled? */ unsigned int sc_dfs_testmode:1; /* IF this is on, AP vaps will stay in - * 'channel availability check' indefinately, + * 'channel availability check' indefinitely, * reporting radar and interference detections. */ unsigned int sc_dmasize_stomp:1; /* Whether to stomp on DMA size. */ diff --git a/ath_hal/ah.c b/ath_hal/ah.c index 668ace7..35ba78d 100644 --- a/ath_hal/ah.c +++ b/ath_hal/ah.c @@ -151,7 +151,7 @@ ath_hal_computetxtime(struct ath_hal *ah, kbps = rates->info[rateix].rateKbps; /* - * index can be invalid duting dynamic Turbo transitions. + * index can be invalid during dynamic Turbo transitions. */ if(kbps == 0) return 0; switch (rates->info[rateix].phy) { diff --git a/ath_hal/ah_regdomain.c b/ath_hal/ah_regdomain.c index 707626c..551546b 100644 --- a/ath_hal/ah_regdomain.c +++ b/ath_hal/ah_regdomain.c @@ -2361,7 +2361,7 @@ IS_BIT_SET(int bit, const uint64_t bitmask[]) return (bitmask[byteOffset] & val) != 0; } -/* Add given regclassid into regclassids array upto max of maxregids */ +/* Add given regclassid into regclassids array up to max of maxregids */ static void ath_add_regclassid(uint8_t *regclassids, u_int maxregids, u_int *nregids, uint8_t regclassid) diff --git a/ath_hal/ar5211/ar5211_reset.c b/ath_hal/ar5211/ar5211_reset.c index 1290c26..f515f89 100644 --- a/ath_hal/ar5211/ar5211_reset.c +++ b/ath_hal/ar5211/ar5211_reset.c @@ -940,7 +940,7 @@ getNoiseFloorThresh(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan, int16_t *nft } /* - * Read the NF and check it against the noise floor threshhold + * Read the NF and check it against the noise floor threshold * * Returns: TRUE if the NF is good */ diff --git a/ath_hal/ar5212/ar2316.c b/ath_hal/ar5212/ar2316.c index 2925cb5..ac60db6 100644 --- a/ath_hal/ar5212/ar2316.c +++ b/ath_hal/ar5212/ar2316.c @@ -381,9 +381,9 @@ ar2316getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel, * change pwr_I_0 to signed 5-bits. */ int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on. */ + /* to accommodate -ve power levels later on. */ int16_t Pmax_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on */ + /* to accommodate -ve power levels later on */ uint16_t numVpd = 0; uint16_t Vpd_step; int16_t tmpVal ; diff --git a/ath_hal/ar5212/ar2317.c b/ath_hal/ar5212/ar2317.c index c993101..78f5b4c 100644 --- a/ath_hal/ar5212/ar2317.c +++ b/ath_hal/ar5212/ar2317.c @@ -358,9 +358,9 @@ ar2317getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel, * change pwr_I_0 to signed 5-bits. */ int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on. */ + /* to accommodate -ve power levels later on. */ int16_t Pmax_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on */ + /* to accommodate -ve power levels later on */ uint16_t numVpd = 0; uint16_t Vpd_step; int16_t tmpVal ; diff --git a/ath_hal/ar5212/ar2413.c b/ath_hal/ar5212/ar2413.c index b997780..326dc0d 100644 --- a/ath_hal/ar5212/ar2413.c +++ b/ath_hal/ar5212/ar2413.c @@ -375,9 +375,9 @@ ar2413getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel, * change pwr_I_0 to signed 5-bits. */ int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on. */ + /* to accommodate -ve power levels later on. */ int16_t Pmax_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on */ + /* to accommodate -ve power levels later on */ uint16_t numVpd = 0; uint16_t Vpd_step; int16_t tmpVal ; diff --git a/ath_hal/ar5212/ar2425.c b/ath_hal/ar5212/ar2425.c index d498978..82bc17f 100644 --- a/ath_hal/ar5212/ar2425.c +++ b/ath_hal/ar5212/ar2425.c @@ -380,9 +380,9 @@ ar2425getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel, * change pwr_I_0 to signed 5-bits. */ static int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on. */ + /* to accommodate -ve power levels later on. */ static int16_t Pmax_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on */ + /* to accommodate -ve power levels later on */ uint16_t numVpd = 0; uint16_t Vpd_step; int16_t tmpVal ; diff --git a/ath_hal/ar5212/ar5212_attach.c b/ath_hal/ar5212/ar5212_attach.c index b117adb..daf4879 100644 --- a/ath_hal/ar5212/ar5212_attach.c +++ b/ath_hal/ar5212/ar5212_attach.c @@ -836,7 +836,7 @@ ar5212FillCapabilityInfo(struct ath_hal *ah) pCap->halRfSilentSupport = AH_TRUE; } - /* NB: this is a guess, noone seems to know the answer */ + /* NB: this is a guess, no one seems to know the answer */ ahpriv->ah_rxornIsFatal = (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_VENICE); diff --git a/ath_hal/ar5212/ar5212_power.c b/ath_hal/ar5212/ar5212_power.c index aca52ad..6a0915a 100644 --- a/ath_hal/ar5212/ar5212_power.c +++ b/ath_hal/ar5212/ar5212_power.c @@ -51,7 +51,7 @@ ar5212SetPowerModeAwake(struct ath_hal *ah, int setChip) * which when blindly written back with OS_REG_RMW_FIELD * enables the MIB interrupt for the sleep performance * counters. This can result in an interrupt storm when - * ANI is in operation as noone knows to turn off the MIB + * ANI is in operation as no one knows to turn off the MIB * interrupt cause. */ scr = OS_REG_READ(ah, AR_SCR); diff --git a/ath_hal/ar5212/ar5212_reset.c b/ath_hal/ar5212/ar5212_reset.c index 186fefd..aa0c8c3 100644 --- a/ath_hal/ar5212/ar5212_reset.c +++ b/ath_hal/ar5212/ar5212_reset.c @@ -1257,7 +1257,7 @@ ar5212GetNfHistMid(const int16_t calData[AR512_NF_CAL_HIST_MAX]) } /* - * Read the NF and check it against the noise floor threshhold + * Read the NF and check it against the noise floor threshold */ int16_t ar5212GetNf(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan) diff --git a/ath_hal/ar5212/ar5413.c b/ath_hal/ar5212/ar5413.c index b6a6d8f..8421f7e 100644 --- a/ath_hal/ar5212/ar5413.c +++ b/ath_hal/ar5212/ar5413.c @@ -411,9 +411,9 @@ ar5413getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel, * change pwr_I_0 to signed 5-bits. */ int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on. */ + /* to accommodate -ve power levels later on. */ int16_t Pmax_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; - /* to accomodate -ve power levels later on */ + /* to accommodate -ve power levels later on */ uint16_t numVpd = 0; uint16_t Vpd_step; int16_t tmpVal ; diff --git a/ath_hal/ar5416/ar5416_cal.c b/ath_hal/ar5416/ar5416_cal.c index 49db049..f81390d 100644 --- a/ath_hal/ar5416/ar5416_cal.c +++ b/ath_hal/ar5416/ar5416_cal.c @@ -621,7 +621,7 @@ ar5416UpdateNFHistBuff(struct ar5212NfCalHist *h, int16_t *nfarray) } /* - * Read the NF and check it against the noise floor threshhold + * Read the NF and check it against the noise floor threshold */ static int16_t ar5416GetNf(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan) diff --git a/ath_hal/ar5416/ar5416_xmit.c b/ath_hal/ar5416/ar5416_xmit.c index a0e2f14..ae1aa13 100644 --- a/ath_hal/ar5416/ar5416_xmit.c +++ b/ath_hal/ar5416/ar5416_xmit.c @@ -563,7 +563,7 @@ ar5416ProcTxDesc(struct ath_hal *ah, } /* - * These fields are not used. Zero these to preserve compatability + * These fields are not used. Zero these to preserve compatibility * with existing drivers. */ ts->ts_virtcol = MS(ads->ds_ctl1, AR_VirtRetryCnt); diff --git a/ath_hal/ar5416/ar5416reg.h b/ath_hal/ar5416/ar5416reg.h index c9a49fd..a6f4be6 100644 --- a/ath_hal/ar5416/ar5416reg.h +++ b/ath_hal/ar5416/ar5416reg.h @@ -192,10 +192,10 @@ #define AR_PCIE_PM_CTRL_ENA 0x00080000 #define AR_AHB_EXACT_WR_EN 0x00000000 /* write exact bytes */ -#define AR_AHB_BUF_WR_EN 0x00000001 /* buffer write upto cacheline*/ +#define AR_AHB_BUF_WR_EN 0x00000001 /* buffer write up to cacheline*/ #define AR_AHB_EXACT_RD_EN 0x00000000 /* read exact bytes */ -#define AR_AHB_CACHELINE_RD_EN 0x00000002 /* read upto end of cacheline */ -#define AR_AHB_PREFETCH_RD_EN 0x00000004 /* prefetch upto page boundary*/ +#define AR_AHB_CACHELINE_RD_EN 0x00000002 /* read up to end of cacheline */ +#define AR_AHB_PREFETCH_RD_EN 0x00000004 /* prefetch up to page boundary*/ #define AR_AHB_PAGE_SIZE_1K 0x00000000 /* set page-size as 1k */ #define AR_AHB_PAGE_SIZE_2K 0x00000008 /* set page-size as 2k */ #define AR_AHB_PAGE_SIZE_4K 0x00000010 /* set page-size as 4k */ @@ -416,7 +416,7 @@ #define AR_PCU_MISS_BCN_IN_SLEEP 0x00004000 /* count bmiss's when sleeping */ #define AR_PCU_BUG_12306_FIX_ENA 0x00020000 /* use rx_clear to count sifs */ #define AR_PCU_FORCE_QUIET_COLL 0x00040000 /* kill xmit for channel change */ -#define AR_PCU_TBTT_PROTECT 0x00200000 /* no xmit upto tbtt+20 uS */ +#define AR_PCU_TBTT_PROTECT 0x00200000 /* no xmit up to tbtt+20 uS */ #define AR_PCU_CLEAR_VMF 0x01000000 /* clear vmf mode (fast cc)*/ #define AR_PCU_CLEAR_BA_VALID 0x04000000 /* clear ba state */ diff --git a/ath_rate/minstrel/minstrel.c b/ath_rate/minstrel/minstrel.c index e3d4c6d..1cca922 100644 --- a/ath_rate/minstrel/minstrel.c +++ b/ath_rate/minstrel/minstrel.c @@ -61,7 +61,7 @@ * * It is not an aimless search, there is some direction to the search * pattern. But then, the minstels of old only sung where they thought - * they would get an income. Similarily, we direct thesearch a little. + * they would get an income. Similarly, we direct the search a little. * * Enjoy. Derek Smithies. */ diff --git a/include/compat.h b/include/compat.h index 4f6d0ad..5e6d569 100644 --- a/include/compat.h +++ b/include/compat.h @@ -92,7 +92,7 @@ /* * BSD/Linux compatibility shims. These are used mainly to - * minimize differences when importing necesary BSD code. + * minimize differences when importing necessary BSD code. */ #define NBBY 8 /* number of bits/byte */ diff --git a/net80211/ieee80211.c b/net80211/ieee80211.c index 2bca9e3..2f2721a 100644 --- a/net80211/ieee80211.c +++ b/net80211/ieee80211.c @@ -1847,7 +1847,7 @@ ieee80211_build_countryie(struct ieee80211com *ic) * NB: this is not quite right, since we should have one of: * 'I': indoor only * 'O': outdoor only - * ' ': all enviroments + * ' ': all environments * we currently can only provide 'I' or ' '. */ ic->ic_country_ie.country_str[2] = 'I'; diff --git a/net80211/ieee80211_input.c b/net80211/ieee80211_input.c index 201e94d..15e1239 100644 --- a/net80211/ieee80211_input.c +++ b/net80211/ieee80211_input.c @@ -393,7 +393,7 @@ ieee80211_input(struct ieee80211vap *vap, struct ieee80211_node *ni_or_null, /* since ieee80211_input() can be called multiple times for * flooding VAPs when we don't know which VAP needs the packet - * we don't want to update the wrong state when ni is assigned - * to the bss node to accomodate this case. */ + * to the bss node to accommodate this case. */ if (IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { ni->ni_rssi = rssi; ni->ni_rtsf = rtsf; @@ -1051,7 +1051,7 @@ ieee80211_defrag(struct ieee80211_node *ni, struct sk_buff *skb, int hdrlen) if (more_frag) { if (skb_is_nonlinear(skb)) { /* - * We need a continous buffer to + * We need a continuous buffer to * assemble fragments */ ni->ni_rxfrag = skb_copy(skb, GFP_ATOMIC); diff --git a/net80211/ieee80211_linux.c b/net80211/ieee80211_linux.c index a7603fb..c954aeb 100644 --- a/net80211/ieee80211_linux.c +++ b/net80211/ieee80211_linux.c @@ -99,7 +99,7 @@ static struct attribute *ieee80211_sysfs_attrs[] = { }; static struct attribute_group ieee80211_attr_grp = { - .name = NULL, /* No seperate (sub-)directory */ + .name = NULL, /* No separate (sub-)directory */ .attrs = ieee80211_sysfs_attrs }; #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) */ diff --git a/net80211/ieee80211_node.c b/net80211/ieee80211_node.c index 6a20940..248ce56 100644 --- a/net80211/ieee80211_node.c +++ b/net80211/ieee80211_node.c @@ -374,7 +374,7 @@ ieee80211_reset_bss(struct ieee80211vap *vap) IEEE80211_DPRINTF(vap, IEEE80211_MSG_ASSOC, "%s: ni:%p allocated for " MAC_FMT "\n", __func__, ni, MAC_ADDR(vap->iv_myaddr)); - KASSERT(ni != NULL, ("unable to setup inital BSS node")); + KASSERT(ni != NULL, ("unable to setup initial BSS node")); vap->iv_bss = PASS_NODE(ni); KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 2), diff --git a/net80211/ieee80211_node.h b/net80211/ieee80211_node.h index 5bb8f2c..8b4913f 100644 --- a/net80211/ieee80211_node.h +++ b/net80211/ieee80211_node.h @@ -279,7 +279,7 @@ struct ieee80211_node *ieee80211_find_txnode(struct ieee80211vap *, /* Reference counting only needs to be locked out against the transitions, * 0->1 and 1->0 (i.e., when we do not own the reference we are getting). * This only happens when finding the a node reference from the node table, - * which is locked seperately. Thus, we do not need to lock the follwoing + * which is locked separately. Thus, we do not need to lock the following * functions. * Increment the reference counter for ieee80211_node *. */ struct ieee80211_node *ieee80211_ref_node(struct ieee80211_node *ni); diff --git a/net80211/ieee80211_var.h b/net80211/ieee80211_var.h index 4963e81..fa69215 100644 --- a/net80211/ieee80211_var.h +++ b/net80211/ieee80211_var.h @@ -76,7 +76,7 @@ * This is halfway between the 10@100ms default from prior hardcoded setting for * software beacon miss timers, and the 7@100ms default from prior hardcoded * timer value for hardware beacon miss timer. - * Based upon emperical evidence and practices of commercial vendors, I believe + * Based upon empirical evidence and practices of commercial vendors, I believe * this should really be 2500ms by default. */ #define IEEE80211_BMISSTHRESH_DEFAULT_MS 850 diff --git a/net80211/ieee80211_wireless.c b/net80211/ieee80211_wireless.c index c6340a1..4a9555d 100644 --- a/net80211/ieee80211_wireless.c +++ b/net80211/ieee80211_wireless.c @@ -983,7 +983,7 @@ ieee80211_ioctl_giwrange(struct net_device *dev, struct iw_request_info *info, } /* Atheros' RSSI value is SNR: 0 -> 60 for old chipsets. Range - * for newer chipsets is unknown. This value is arbitarily chosen + * for newer chipsets is unknown. This value is arbitrarily chosen * to give an indication that full rate will be available and to be * a practicable maximum. */ range->max_qual.qual = 70; @@ -2186,7 +2186,7 @@ ieee80211_setupxr(struct ieee80211vap *vap) strcat(name, "-xr"); /* * Create a new XR vap. If the normal VAP is already up, - * bring up the XR vap aswell. + * bring up the XR vap as well. */ vap->iv_ath_cap &= ~IEEE80211_ATHC_TURBOP; /* turn off turbo */ ieee80211_scan_flush(ic); /* NB: could optimize */ diff --git a/tools/wireless_copy.h b/tools/wireless_copy.h index bf7dc96..e657655 100644 --- a/tools/wireless_copy.h +++ b/tools/wireless_copy.h @@ -1065,7 +1065,7 @@ struct iw_priv_args */ struct iw_event { - __u16 len; /* Real lenght of this stuff */ + __u16 len; /* Real length of this stuff */ __u16 cmd; /* Wireless IOCTL */ union iwreq_data u; /* IOCTL fixed payload */ };