Fix typos found by codespell

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4166 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2011-08-26 15:31:01 +00:00
parent 2fc801acdb
commit 5890429464
27 changed files with 38 additions and 38 deletions

View File

@ -2677,7 +2677,7 @@ ath_bmiss_tasklet(TQUEUE_ARG data)
struct ath_softc *sc = netdev_priv(dev); struct ath_softc *sc = netdev_priv(dev);
if (time_before(jiffies, sc->sc_ic.ic_bmiss_guard)) { 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. */ * timer configuration. Ignore it as it could be spurious. */
DPRINTF(sc, ATH_DEBUG_ANY, "Beacon miss ignored\n"); DPRINTF(sc, ATH_DEBUG_ANY, "Beacon miss ignored\n");
} else { } 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 * being very careful or taking something into account that I can't
* find in the specs. * 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). */ * timeout). */
return ath_slottime2timeout(sc, ath_distance2slottime(sc, distance)); return ath_slottime2timeout(sc, ath_distance2slottime(sc, distance));
} }

View File

@ -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 * 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 * 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 * 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 * 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 * into the timer period (16 bit) a whole number of times the size of the ATIM
* window can get bigger than desired. * window can get bigger than desired.

View File

@ -701,7 +701,7 @@ struct ath_softc {
unsigned int sc_useintmit:1; /* Interference mitigation enabled? */ unsigned int sc_useintmit:1; /* Interference mitigation enabled? */
unsigned int sc_txcont:1; /* Is continuous transmit 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 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. */ * reporting radar and interference detections. */
unsigned int sc_dmasize_stomp:1; /* Whether to stomp on DMA size. */ unsigned int sc_dmasize_stomp:1; /* Whether to stomp on DMA size. */

View File

@ -151,7 +151,7 @@ ath_hal_computetxtime(struct ath_hal *ah,
kbps = rates->info[rateix].rateKbps; 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; if(kbps == 0) return 0;
switch (rates->info[rateix].phy) { switch (rates->info[rateix].phy) {

View File

@ -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 * Returns: TRUE if the NF is good
*/ */

View File

@ -381,9 +381,9 @@ ar2316getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel,
* change pwr_I_0 to signed 5-bits. * change pwr_I_0 to signed 5-bits.
*/ */
int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; 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]; 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 numVpd = 0;
uint16_t Vpd_step; uint16_t Vpd_step;
int16_t tmpVal ; int16_t tmpVal ;

View File

@ -358,9 +358,9 @@ ar2317getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel,
* change pwr_I_0 to signed 5-bits. * change pwr_I_0 to signed 5-bits.
*/ */
int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; 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]; 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 numVpd = 0;
uint16_t Vpd_step; uint16_t Vpd_step;
int16_t tmpVal ; int16_t tmpVal ;

View File

@ -375,9 +375,9 @@ ar2413getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel,
* change pwr_I_0 to signed 5-bits. * change pwr_I_0 to signed 5-bits.
*/ */
int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; 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]; 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 numVpd = 0;
uint16_t Vpd_step; uint16_t Vpd_step;
int16_t tmpVal ; int16_t tmpVal ;

View File

@ -380,9 +380,9 @@ ar2425getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel,
* change pwr_I_0 to signed 5-bits. * change pwr_I_0 to signed 5-bits.
*/ */
static int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; 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]; 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 numVpd = 0;
uint16_t Vpd_step; uint16_t Vpd_step;
int16_t tmpVal ; int16_t tmpVal ;

View File

@ -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 int16_t
ar5212GetNf(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan) ar5212GetNf(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan)

View File

@ -411,9 +411,9 @@ ar5413getGainBoundariesAndPdadcsForPowers(struct ath_hal *ah, uint16_t channel,
* change pwr_I_0 to signed 5-bits. * change pwr_I_0 to signed 5-bits.
*/ */
int16_t Pmin_t2[MAX_NUM_PDGAINS_PER_CHANNEL]; 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]; 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 numVpd = 0;
uint16_t Vpd_step; uint16_t Vpd_step;
int16_t tmpVal ; int16_t tmpVal ;

View File

@ -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 static int16_t
ar5416GetNf(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan) ar5416GetNf(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan)

View File

@ -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. * with existing drivers.
*/ */
ts->ts_virtcol = MS(ads->ds_ctl1, AR_VirtRetryCnt); ts->ts_virtcol = MS(ads->ds_ctl1, AR_VirtRetryCnt);

View File

@ -61,7 +61,7 @@
* *
* It is not an aimless search, there is some direction to the search * 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 * 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. */ * Enjoy. Derek Smithies. */

View File

@ -92,7 +92,7 @@
/* /*
* BSD/Linux compatibility shims. These are used mainly to * 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 */ #define NBBY 8 /* number of bits/byte */

View File

@ -1847,7 +1847,7 @@ ieee80211_build_countryie(struct ieee80211com *ic)
* NB: this is not quite right, since we should have one of: * NB: this is not quite right, since we should have one of:
* 'I': indoor only * 'I': indoor only
* 'O': outdoor only * 'O': outdoor only
* ' ': all enviroments * ' ': all environments
* we currently can only provide 'I' or ' '. * we currently can only provide 'I' or ' '.
*/ */
ic->ic_country_ie.country_str[2] = 'I'; ic->ic_country_ie.country_str[2] = 'I';

View File

@ -393,7 +393,7 @@ ieee80211_input(struct ieee80211vap *vap, struct ieee80211_node *ni_or_null,
/* since ieee80211_input() can be called multiple times for /* since ieee80211_input() can be called multiple times for
* flooding VAPs when we don't know which VAP needs the packet - * 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 * 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)) { if (IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
ni->ni_rssi = rssi; ni->ni_rssi = rssi;
ni->ni_rtsf = rtsf; ni->ni_rtsf = rtsf;
@ -1051,7 +1051,7 @@ ieee80211_defrag(struct ieee80211_node *ni, struct sk_buff *skb, int hdrlen)
if (more_frag) { if (more_frag) {
if (skb_is_nonlinear(skb)) { if (skb_is_nonlinear(skb)) {
/* /*
* We need a continous buffer to * We need a continuous buffer to
* assemble fragments * assemble fragments
*/ */
ni->ni_rxfrag = skb_copy(skb, GFP_ATOMIC); ni->ni_rxfrag = skb_copy(skb, GFP_ATOMIC);

View File

@ -99,7 +99,7 @@ static struct attribute *ieee80211_sysfs_attrs[] = {
}; };
static struct attribute_group ieee80211_attr_grp = { static struct attribute_group ieee80211_attr_grp = {
.name = NULL, /* No seperate (sub-)directory */ .name = NULL, /* No separate (sub-)directory */
.attrs = ieee80211_sysfs_attrs .attrs = ieee80211_sysfs_attrs
}; };
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) */ #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) */

View File

@ -374,7 +374,7 @@ ieee80211_reset_bss(struct ieee80211vap *vap)
IEEE80211_DPRINTF(vap, IEEE80211_MSG_ASSOC, IEEE80211_DPRINTF(vap, IEEE80211_MSG_ASSOC,
"%s: ni:%p allocated for " MAC_FMT "\n", "%s: ni:%p allocated for " MAC_FMT "\n",
__func__, ni, MAC_ADDR(vap->iv_myaddr)); __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); vap->iv_bss = PASS_NODE(ni);
KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 2), KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 2),

View File

@ -279,7 +279,7 @@ struct ieee80211_node *ieee80211_find_txnode(struct ieee80211vap *,
/* Reference counting only needs to be locked out against the transitions, /* 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). * 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, * 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. * functions.
* Increment the reference counter for ieee80211_node *. */ * Increment the reference counter for ieee80211_node *. */
struct ieee80211_node *ieee80211_ref_node(struct ieee80211_node *ni); struct ieee80211_node *ieee80211_ref_node(struct ieee80211_node *ni);

View File

@ -76,7 +76,7 @@
* This is halfway between the 10@100ms default from prior hardcoded setting for * 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 * software beacon miss timers, and the 7@100ms default from prior hardcoded
* timer value for hardware beacon miss timer. * 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. */ * this should really be 2500ms by default. */
#define IEEE80211_BMISSTHRESH_DEFAULT_MS 850 #define IEEE80211_BMISSTHRESH_DEFAULT_MS 850

View File

@ -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 /* 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 * to give an indication that full rate will be available and to be
* a practicable maximum. */ * a practicable maximum. */
range->max_qual.qual = 70; range->max_qual.qual = 70;

View File

@ -1065,7 +1065,7 @@ struct iw_priv_args
*/ */
struct iw_event struct iw_event
{ {
__u16 len; /* Real lenght of this stuff */ __u16 len; /* Real length of this stuff */
__u16 cmd; /* Wireless IOCTL */ __u16 cmd; /* Wireless IOCTL */
union iwreq_data u; /* IOCTL fixed payload */ union iwreq_data u; /* IOCTL fixed payload */
}; };