Commit 49513481 authored by Luis Correia's avatar Luis Correia Committed by John W. Linville

rt2x00: Comment spellchecking

Fix a bunch of spelling errors in the rt2x00 drivers
Signed-off-by: default avatarLuis Correia <luis.f.correia@gmail.com>
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 30a12a8f
...@@ -928,7 +928,7 @@ ...@@ -928,7 +928,7 @@
#define RXD_W7_RESERVED FIELD32(0xffffffff) #define RXD_W7_RESERVED FIELD32(0xffffffff)
/* /*
* Macro's for converting txpower from EEPROM to mac80211 value * Macros for converting txpower from EEPROM to mac80211 value
* and from mac80211 value to register value. * and from mac80211 value to register value.
* NOTE: Logics in rt2400pci for txpower are reversed * NOTE: Logics in rt2400pci for txpower are reversed
* compared to the other rt2x00 drivers. A higher txpower * compared to the other rt2x00 drivers. A higher txpower
......
...@@ -1218,7 +1218,7 @@ ...@@ -1218,7 +1218,7 @@
#define RXD_W10_DROP FIELD32(0x00000001) #define RXD_W10_DROP FIELD32(0x00000001)
/* /*
* Macro's for converting txpower from EEPROM to mac80211 value * Macros for converting txpower from EEPROM to mac80211 value
* and from mac80211 value to register value. * and from mac80211 value to register value.
*/ */
#define MIN_TXPOWER 0 #define MIN_TXPOWER 0
......
...@@ -831,7 +831,7 @@ ...@@ -831,7 +831,7 @@
#define RXD_W3_EIV FIELD32(0xffffffff) #define RXD_W3_EIV FIELD32(0xffffffff)
/* /*
* Macro's for converting txpower from EEPROM to mac80211 value * Macros for converting txpower from EEPROM to mac80211 value
* and from mac80211 value to register value. * and from mac80211 value to register value.
*/ */
#define MIN_TXPOWER 0 #define MIN_TXPOWER 0
......
...@@ -1910,7 +1910,7 @@ static int rt2800usb_set_device_state(struct rt2x00_dev *rt2x00dev, ...@@ -1910,7 +1910,7 @@ static int rt2800usb_set_device_state(struct rt2x00_dev *rt2x00dev,
/* /*
* Before the radio can be enabled, the device first has * Before the radio can be enabled, the device first has
* to be woken up. After that it needs a bit of time * to be woken up. After that it needs a bit of time
* to be fully awake and the radio can be enabled. * to be fully awake and then the radio can be enabled.
*/ */
rt2800usb_set_state(rt2x00dev, STATE_AWAKE); rt2800usb_set_state(rt2x00dev, STATE_AWAKE);
msleep(1); msleep(1);
...@@ -1918,7 +1918,7 @@ static int rt2800usb_set_device_state(struct rt2x00_dev *rt2x00dev, ...@@ -1918,7 +1918,7 @@ static int rt2800usb_set_device_state(struct rt2x00_dev *rt2x00dev,
break; break;
case STATE_RADIO_OFF: case STATE_RADIO_OFF:
/* /*
* After the radio has been disablee, the device should * After the radio has been disabled, the device should
* be put to sleep for powersaving. * be put to sleep for powersaving.
*/ */
rt2800usb_disable_radio(rt2x00dev); rt2800usb_disable_radio(rt2x00dev);
......
...@@ -1921,7 +1921,7 @@ struct mac_iveiv_entry { ...@@ -1921,7 +1921,7 @@ struct mac_iveiv_entry {
#define RXWI_W3_SNR1 FIELD32(0x0000ff00) #define RXWI_W3_SNR1 FIELD32(0x0000ff00)
/* /*
* Macro's for converting txpower from EEPROM to mac80211 value * Macros for converting txpower from EEPROM to mac80211 value
* and from mac80211 value to register value. * and from mac80211 value to register value.
*/ */
#define MIN_G_TXPOWER 0 #define MIN_G_TXPOWER 0
......
...@@ -245,7 +245,7 @@ struct link_ant { ...@@ -245,7 +245,7 @@ struct link_ant {
struct antenna_setup active; struct antenna_setup active;
/* /*
* RSSI information for the different antenna's. * RSSI information for the different antennas.
* These statistics are used to determine when * These statistics are used to determine when
* to switch antenna when using software diversity. * to switch antenna when using software diversity.
* *
...@@ -633,7 +633,7 @@ struct rt2x00_dev { ...@@ -633,7 +633,7 @@ struct rt2x00_dev {
* The structure stored in here depends on the * The structure stored in here depends on the
* system bus (PCI or USB). * system bus (PCI or USB).
* When accessing this variable, the rt2x00dev_{pci,usb} * When accessing this variable, the rt2x00dev_{pci,usb}
* macro's should be used for correct typecasting. * macros should be used for correct typecasting.
*/ */
struct device *dev; struct device *dev;
......
...@@ -132,7 +132,7 @@ void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, ...@@ -132,7 +132,7 @@ void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev,
/* /*
* Failsafe: Make sure we are not sending the * Failsafe: Make sure we are not sending the
* ANTENNA_SW_DIVERSITY state to the driver. * ANTENNA_SW_DIVERSITY state to the driver.
* If that happes fallback to hardware default, * If that happens, fallback to hardware defaults,
* or our own default. * or our own default.
* The calls to rt2x00lib_config_antenna_check() * The calls to rt2x00lib_config_antenna_check()
* might have caused that we restore back to the already * might have caused that we restore back to the already
......
...@@ -129,7 +129,7 @@ void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, struct txentry_desc *txdesc) ...@@ -129,7 +129,7 @@ void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, struct txentry_desc *txdesc)
/* Pull buffer to correct size */ /* Pull buffer to correct size */
skb_pull(skb, txdesc->iv_len); skb_pull(skb, txdesc->iv_len);
/* IV/EIV data has officially be stripped */ /* IV/EIV data has officially been stripped */
skbdesc->flags |= SKBDESC_IV_STRIPPED; skbdesc->flags |= SKBDESC_IV_STRIPPED;
} }
......
...@@ -158,7 +158,7 @@ static void rt2x00lib_antenna_diversity_sample(struct rt2x00_dev *rt2x00dev) ...@@ -158,7 +158,7 @@ static void rt2x00lib_antenna_diversity_sample(struct rt2x00_dev *rt2x00dev)
/* /*
* During the last period we have sampled the RSSI * During the last period we have sampled the RSSI
* from both antenna's. It now is time to determine * from both antennas. It now is time to determine
* which antenna demonstrated the best performance. * which antenna demonstrated the best performance.
* When we are already on the antenna with the best * When we are already on the antenna with the best
* performance, then there really is nothing for us * performance, then there really is nothing for us
......
...@@ -341,7 +341,7 @@ int rt2x00mac_config(struct ieee80211_hw *hw, u32 changed) ...@@ -341,7 +341,7 @@ int rt2x00mac_config(struct ieee80211_hw *hw, u32 changed)
int status; int status;
/* /*
* Mac80211 might be calling this function while we are trying * mac80211 might be calling this function while we are trying
* to remove the device or perhaps suspending it. * to remove the device or perhaps suspending it.
*/ */
if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags))
...@@ -587,7 +587,7 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, ...@@ -587,7 +587,7 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw,
int update_bssid = 0; int update_bssid = 0;
/* /*
* Mac80211 might be calling this function while we are trying * mac80211 might be calling this function while we are trying
* to remove the device or perhaps suspending it. * to remove the device or perhaps suspending it.
*/ */
if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags))
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <linux/prefetch.h> #include <linux/prefetch.h>
/** /**
* DOC: Entrie frame size * DOC: Entry frame size
* *
* Ralink PCI devices demand the Frame size to be a multiple of 128 bytes, * Ralink PCI devices demand the Frame size to be a multiple of 128 bytes,
* for USB devices this restriction does not apply, but the value of * for USB devices this restriction does not apply, but the value of
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
/** /**
* DOC: Number of entries per queue * DOC: Number of entries per queue
* *
* Under normal load without fragmentation 12 entries are sufficient * Under normal load without fragmentation, 12 entries are sufficient
* without the queue being filled up to the maximum. When using fragmentation * without the queue being filled up to the maximum. When using fragmentation
* and the queue threshold code we need to add some additional margins to * and the queue threshold code, we need to add some additional margins to
* make sure the queue will never (or only under extreme load) fill up * make sure the queue will never (or only under extreme load) fill up
* completely. * completely.
* Since we don't use preallocated DMA having a large number of queue entries * Since we don't use preallocated DMA, having a large number of queue entries
* will have only minimal impact on the memory requirements for the queue. * will have minimal impact on the memory requirements for the queue.
*/ */
#define RX_ENTRIES 24 #define RX_ENTRIES 24
#define TX_ENTRIES 24 #define TX_ENTRIES 24
......
...@@ -176,8 +176,8 @@ struct rt2x00_field32 { ...@@ -176,8 +176,8 @@ struct rt2x00_field32 {
#define is_valid_mask(x) is_power_of_two(1LU + (x) + low_bit_mask(x)) #define is_valid_mask(x) is_power_of_two(1LU + (x) + low_bit_mask(x))
/* /*
* Macro's to find first set bit in a variable. * Macros to find first set bit in a variable.
* These macro's behaves the same as the __ffs() function with * These macros behave the same as the __ffs() functions but
* the most important difference that this is done during * the most important difference that this is done during
* compile-time rather then run-time. * compile-time rather then run-time.
*/ */
......
...@@ -2312,7 +2312,7 @@ static int rt61pci_init_eeprom(struct rt2x00_dev *rt2x00dev) ...@@ -2312,7 +2312,7 @@ static int rt61pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
} }
/* /*
* Determine number of antenna's. * Determine number of antennas.
*/ */
if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_NUM) == 2) if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_NUM) == 2)
__set_bit(CONFIG_DOUBLE_ANTENNA, &rt2x00dev->flags); __set_bit(CONFIG_DOUBLE_ANTENNA, &rt2x00dev->flags);
......
...@@ -1476,7 +1476,7 @@ struct hw_pairwise_ta_entry { ...@@ -1476,7 +1476,7 @@ struct hw_pairwise_ta_entry {
#define RXD_W15_RESERVED FIELD32(0xffffffff) #define RXD_W15_RESERVED FIELD32(0xffffffff)
/* /*
* Macro's for converting txpower from EEPROM to mac80211 value * Macros for converting txpower from EEPROM to mac80211 value
* and from mac80211 value to register value. * and from mac80211 value to register value.
*/ */
#define MIN_TXPOWER 0 #define MIN_TXPOWER 0
......
...@@ -809,7 +809,7 @@ struct hw_pairwise_ta_entry { ...@@ -809,7 +809,7 @@ struct hw_pairwise_ta_entry {
/* /*
* EEPROM antenna. * EEPROM antenna.
* ANTENNA_NUM: Number of antenna's. * ANTENNA_NUM: Number of antennas.
* TX_DEFAULT: Default antenna 0: diversity, 1: A, 2: B. * TX_DEFAULT: Default antenna 0: diversity, 1: A, 2: B.
* RX_DEFAULT: Default antenna 0: diversity, 1: A, 2: B. * RX_DEFAULT: Default antenna 0: diversity, 1: A, 2: B.
* FRAME_TYPE: 0: DPDT , 1: SPDT , noted this bit is valid for g only. * FRAME_TYPE: 0: DPDT , 1: SPDT , noted this bit is valid for g only.
...@@ -1058,7 +1058,7 @@ struct hw_pairwise_ta_entry { ...@@ -1058,7 +1058,7 @@ struct hw_pairwise_ta_entry {
#define RXD_W5_RESERVED FIELD32(0xffffffff) #define RXD_W5_RESERVED FIELD32(0xffffffff)
/* /*
* Macro's for converting txpower from EEPROM to mac80211 value * Macros for converting txpower from EEPROM to mac80211 value
* and from mac80211 value to register value. * and from mac80211 value to register value.
*/ */
#define MIN_TXPOWER 0 #define MIN_TXPOWER 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment