diff options
author | Justin P. Mattock <justinmattock@gmail.com> | 2012-04-17 09:56:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 19:58:16 -0400 |
commit | ed2cb4f3b5ed96e4d10e054f981bbe58d0e3508e (patch) | |
tree | a08043f27f54456d46877223763d6498c40ae731 /drivers/staging | |
parent | 15ecf29e1666ac0c18625ad276423c0291536543 (diff) |
Staging: rtl8187se: Fix typos.
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8187se/Makefile | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/dot11d.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211.h | 14 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c | 24 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8180.h | 10 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8180_core.c | 30 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8180_dm.c | 16 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8180_rtl8225z2.c | 4 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8180_wx.c | 6 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8180_wx.h | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8187se/r8185b_init.c | 10 |
14 files changed, 63 insertions, 63 deletions
diff --git a/drivers/staging/rtl8187se/Makefile b/drivers/staging/rtl8187se/Makefile index 72db504b23b..91d1aa2830c 100644 --- a/drivers/staging/rtl8187se/Makefile +++ b/drivers/staging/rtl8187se/Makefile | |||
@@ -10,7 +10,7 @@ ccflags-y += -DHIGH_POWER | |||
10 | ccflags-y += -DSW_DIG | 10 | ccflags-y += -DSW_DIG |
11 | ccflags-y += -DRATE_ADAPT | 11 | ccflags-y += -DRATE_ADAPT |
12 | 12 | ||
13 | #enable it for legacy power save, disable it for leisure power save | 13 | #enable it for legacy power save, disable it for leisure power save |
14 | ccflags-y += -DENABLE_LPS | 14 | ccflags-y += -DENABLE_LPS |
15 | 15 | ||
16 | 16 | ||
diff --git a/drivers/staging/rtl8187se/ieee80211/dot11d.c b/drivers/staging/rtl8187se/ieee80211/dot11d.c index 309bb8bf287..0e93eb0735a 100644 --- a/drivers/staging/rtl8187se/ieee80211/dot11d.c +++ b/drivers/staging/rtl8187se/ieee80211/dot11d.c | |||
@@ -55,7 +55,7 @@ Dot11d_Reset(struct ieee80211_device *ieee) | |||
55 | 55 | ||
56 | // | 56 | // |
57 | // Description: | 57 | // Description: |
58 | // Update country IE from Beacon or Probe Resopnse | 58 | // Update country IE from Beacon or Probe Response |
59 | // and configure PHY for operation in the regulatory domain. | 59 | // and configure PHY for operation in the regulatory domain. |
60 | // | 60 | // |
61 | // TODO: | 61 | // TODO: |
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211.h b/drivers/staging/rtl8187se/ieee80211/ieee80211.h index 40dd715d9df..b94c48b2930 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211.h | |||
@@ -834,7 +834,7 @@ enum ieee80211_state { | |||
834 | /* the association procedure is sending AUTH request*/ | 834 | /* the association procedure is sending AUTH request*/ |
835 | IEEE80211_ASSOCIATING_AUTHENTICATING, | 835 | IEEE80211_ASSOCIATING_AUTHENTICATING, |
836 | 836 | ||
837 | /* the association procedure has successfully authentcated | 837 | /* the association procedure has successfully authenticated |
838 | * and is sending association request | 838 | * and is sending association request |
839 | */ | 839 | */ |
840 | IEEE80211_ASSOCIATING_AUTHENTICATED, | 840 | IEEE80211_ASSOCIATING_AUTHENTICATED, |
@@ -934,7 +934,7 @@ struct ieee80211_device { | |||
934 | * with RX of broad/multicast frames */ | 934 | * with RX of broad/multicast frames */ |
935 | 935 | ||
936 | /* Fragmentation structures */ | 936 | /* Fragmentation structures */ |
937 | // each streaming contain a entry | 937 | /* each stream contains an entry */ |
938 | struct ieee80211_frag_entry frag_cache[17][IEEE80211_FRAG_CACHE_LEN]; | 938 | struct ieee80211_frag_entry frag_cache[17][IEEE80211_FRAG_CACHE_LEN]; |
939 | unsigned int frag_next_idx[17]; | 939 | unsigned int frag_next_idx[17]; |
940 | u16 fts; /* Fragmentation Threshold */ | 940 | u16 fts; /* Fragmentation Threshold */ |
@@ -972,7 +972,7 @@ struct ieee80211_device { | |||
972 | 972 | ||
973 | int rate; /* current rate */ | 973 | int rate; /* current rate */ |
974 | int basic_rate; | 974 | int basic_rate; |
975 | //FIXME: pleace callback, see if redundant with softmac_features | 975 | //FIXME: please callback, see if redundant with softmac_features |
976 | short active_scan; | 976 | short active_scan; |
977 | 977 | ||
978 | /* this contains flags for selectively enable softmac support */ | 978 | /* this contains flags for selectively enable softmac support */ |
@@ -1106,7 +1106,7 @@ struct ieee80211_device { | |||
1106 | 1106 | ||
1107 | /* used instead of hard_start_xmit (not softmac_hard_start_xmit) | 1107 | /* used instead of hard_start_xmit (not softmac_hard_start_xmit) |
1108 | * if the IEEE_SOFTMAC_TX_QUEUE feature is used to TX data | 1108 | * if the IEEE_SOFTMAC_TX_QUEUE feature is used to TX data |
1109 | * frames. I the option IEEE_SOFTMAC_SINGLE_QUEUE is also set | 1109 | * frames. If the option IEEE_SOFTMAC_SINGLE_QUEUE is also set |
1110 | * then also management frames are sent via this callback. | 1110 | * then also management frames are sent via this callback. |
1111 | * This function can't sleep. | 1111 | * This function can't sleep. |
1112 | */ | 1112 | */ |
@@ -1124,7 +1124,7 @@ struct ieee80211_device { | |||
1124 | 1124 | ||
1125 | /* ask to the driver to retune the radio . | 1125 | /* ask to the driver to retune the radio . |
1126 | * This function can sleep. the driver should ensure | 1126 | * This function can sleep. the driver should ensure |
1127 | * the radio has been swithced before return. | 1127 | * the radio has been switched before return. |
1128 | */ | 1128 | */ |
1129 | void (*set_chan)(struct net_device *dev,short ch); | 1129 | void (*set_chan)(struct net_device *dev,short ch); |
1130 | 1130 | ||
@@ -1135,7 +1135,7 @@ struct ieee80211_device { | |||
1135 | * The syncro version is similar to the start_scan but | 1135 | * The syncro version is similar to the start_scan but |
1136 | * does not return until all channels has been scanned. | 1136 | * does not return until all channels has been scanned. |
1137 | * this is called in user context and should sleep, | 1137 | * this is called in user context and should sleep, |
1138 | * it is called in a work_queue when swithcing to ad-hoc mode | 1138 | * it is called in a work_queue when switching to ad-hoc mode |
1139 | * or in behalf of iwlist scan when the card is associated | 1139 | * or in behalf of iwlist scan when the card is associated |
1140 | * and root user ask for a scan. | 1140 | * and root user ask for a scan. |
1141 | * the function stop_scan should stop both the syncro and | 1141 | * the function stop_scan should stop both the syncro and |
@@ -1196,7 +1196,7 @@ struct ieee80211_device { | |||
1196 | /* Generate probe requests */ | 1196 | /* Generate probe requests */ |
1197 | #define IEEE_SOFTMAC_PROBERQ (1<<4) | 1197 | #define IEEE_SOFTMAC_PROBERQ (1<<4) |
1198 | 1198 | ||
1199 | /* Generate respones to probe requests */ | 1199 | /* Generate response to probe requests */ |
1200 | #define IEEE_SOFTMAC_PROBERS (1<<5) | 1200 | #define IEEE_SOFTMAC_PROBERS (1<<5) |
1201 | 1201 | ||
1202 | /* The ieee802.11 stack will manages the netif queue | 1202 | /* The ieee802.11 stack will manages the netif queue |
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c index 0f909b7c940..8173240dcf7 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c | |||
@@ -42,7 +42,7 @@ short ieee80211_is_shortslot(const struct ieee80211_network *net) | |||
42 | return net->capability & WLAN_CAPABILITY_SHORT_SLOT; | 42 | return net->capability & WLAN_CAPABILITY_SHORT_SLOT; |
43 | } | 43 | } |
44 | 44 | ||
45 | /* returns the total length needed for pleacing the RATE MFIE | 45 | /* returns the total length needed for placing the RATE MFIE |
46 | * tag and the EXTENDED RATE MFIE tag if needed. | 46 | * tag and the EXTENDED RATE MFIE tag if needed. |
47 | * It encludes two bytes per tag for the tag itself and its len | 47 | * It encludes two bytes per tag for the tag itself and its len |
48 | */ | 48 | */ |
@@ -60,7 +60,7 @@ unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee) | |||
60 | return rate_len; | 60 | return rate_len; |
61 | } | 61 | } |
62 | 62 | ||
63 | /* pleace the MFIE rate, tag to the memory (double) poined. | 63 | /* place the MFIE rate, tag to the memory (double) poised. |
64 | * Then it updates the pointer so that | 64 | * Then it updates the pointer so that |
65 | * it points after the new MFIE tag added. | 65 | * it points after the new MFIE tag added. |
66 | */ | 66 | */ |
@@ -467,7 +467,7 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee) | |||
467 | * So we switch to IEEE80211_LINKED_SCANNING to remember | 467 | * So we switch to IEEE80211_LINKED_SCANNING to remember |
468 | * that we are still logically linked (not interested in | 468 | * that we are still logically linked (not interested in |
469 | * new network events, despite for updating the net list, | 469 | * new network events, despite for updating the net list, |
470 | * but we are temporarly 'unlinked' as the driver shall | 470 | * but we are temporarily 'unlinked' as the driver shall |
471 | * not filter RX frames and the channel is changing. | 471 | * not filter RX frames and the channel is changing. |
472 | * So the only situation in witch are interested is to check | 472 | * So the only situation in witch are interested is to check |
473 | * if the state become LINKED because of the #1 situation | 473 | * if the state become LINKED because of the #1 situation |
@@ -530,7 +530,7 @@ void ieee80211_softmac_ips_scan_syncro(struct ieee80211_device *ieee) | |||
530 | * So we switch to IEEE80211_LINKED_SCANNING to remember | 530 | * So we switch to IEEE80211_LINKED_SCANNING to remember |
531 | * that we are still logically linked (not interested in | 531 | * that we are still logically linked (not interested in |
532 | * new network events, despite for updating the net list, | 532 | * new network events, despite for updating the net list, |
533 | * but we are temporarly 'unlinked' as the driver shall | 533 | * but we are temporarily 'unlinked' as the driver shall |
534 | * not filter RX frames and the channel is changing. | 534 | * not filter RX frames and the channel is changing. |
535 | * So the only situation in witch are interested is to check | 535 | * So the only situation in witch are interested is to check |
536 | * if the state become LINKED because of the #1 situation | 536 | * if the state become LINKED because of the #1 situation |
@@ -1140,7 +1140,7 @@ void ieee80211_associate_abort(struct ieee80211_device *ieee) | |||
1140 | 1140 | ||
1141 | ieee->associate_seq++; | 1141 | ieee->associate_seq++; |
1142 | 1142 | ||
1143 | /* don't scan, and avoid to have the RX path possibily | 1143 | /* don't scan, and avoid to have the RX path possibly |
1144 | * try again to associate. Even do not react to AUTH or | 1144 | * try again to associate. Even do not react to AUTH or |
1145 | * ASSOC response. Just wait for the retry wq to be scheduled. | 1145 | * ASSOC response. Just wait for the retry wq to be scheduled. |
1146 | * Here we will check if there are good nets to associate | 1146 | * Here we will check if there are good nets to associate |
@@ -1346,14 +1346,14 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee | |||
1346 | //printk("apset=%d apmatch=%d ssidset=%d ssidbroad=%d ssidmatch=%d\n",apset,apmatch,ssidset,ssidbroad,ssidmatch); | 1346 | //printk("apset=%d apmatch=%d ssidset=%d ssidbroad=%d ssidmatch=%d\n",apset,apmatch,ssidset,ssidbroad,ssidmatch); |
1347 | 1347 | ||
1348 | if ( /* if the user set the AP check if match. | 1348 | if ( /* if the user set the AP check if match. |
1349 | * if the network does not broadcast essid we check the user supplyed ANY essid | 1349 | * if the network does not broadcast essid we check the user supplied ANY essid |
1350 | * if the network does broadcast and the user does not set essid it is OK | 1350 | * if the network does broadcast and the user does not set essid it is OK |
1351 | * if the network does broadcast and the user did set essid chech if essid match | 1351 | * if the network does broadcast and the user did set essid chech if essid match |
1352 | */ | 1352 | */ |
1353 | ( apset && apmatch && | 1353 | ( apset && apmatch && |
1354 | ((ssidset && ssidbroad && ssidmatch) || (ssidbroad && !ssidset) || (!ssidbroad && ssidset)) ) || | 1354 | ((ssidset && ssidbroad && ssidmatch) || (ssidbroad && !ssidset) || (!ssidbroad && ssidset)) ) || |
1355 | /* if the ap is not set, check that the user set the bssid | 1355 | /* if the ap is not set, check that the user set the bssid |
1356 | * and the network does bradcast and that those two bssid matches | 1356 | * and the network does broadcast and that those two bssid matches |
1357 | */ | 1357 | */ |
1358 | (!apset && ssidset && ssidbroad && ssidmatch) | 1358 | (!apset && ssidset && ssidbroad && ssidmatch) |
1359 | ){ | 1359 | ){ |
@@ -1821,7 +1821,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb, | |||
1821 | 1821 | ||
1822 | while (left >= sizeof(struct ieee80211_info_element_hdr)) { | 1822 | while (left >= sizeof(struct ieee80211_info_element_hdr)) { |
1823 | if (sizeof(struct ieee80211_info_element_hdr) + info_element->len > left) { | 1823 | if (sizeof(struct ieee80211_info_element_hdr) + info_element->len > left) { |
1824 | printk(KERN_WARNING "[re]associate reeponse error!"); | 1824 | printk(KERN_WARNING "[re]associate response error!"); |
1825 | return 1; | 1825 | return 1; |
1826 | } | 1826 | } |
1827 | switch (info_element->id) { | 1827 | switch (info_element->id) { |
@@ -2184,15 +2184,15 @@ void ieee80211_start_ibss_wq(struct work_struct *work) | |||
2184 | 2184 | ||
2185 | if(ieee->state == IEEE80211_NOLINK) | 2185 | if(ieee->state == IEEE80211_NOLINK) |
2186 | ieee->current_network.channel = 10; | 2186 | ieee->current_network.channel = 10; |
2187 | /* if not then the state is not linked. Maybe the user swithced to | 2187 | /* if not then the state is not linked. Maybe the user switched to |
2188 | * ad-hoc mode just after being in monitor mode, or just after | 2188 | * ad-hoc mode just after being in monitor mode, or just after |
2189 | * being very few time in managed mode (so the card have had no | 2189 | * being very few time in managed mode (so the card have had no |
2190 | * time to scan all the chans..) or we have just run up the iface | 2190 | * time to scan all the chans..) or we have just run up the iface |
2191 | * after setting ad-hoc mode. So we have to give another try.. | 2191 | * after setting ad-hoc mode. So we have to give another try.. |
2192 | * Here, in ibss mode, should be safe to do this without extra care | 2192 | * Here, in ibss mode, should be safe to do this without extra care |
2193 | * (in bss mode we had to make sure no-one tryed to associate when | 2193 | * (in bss mode we had to make sure no-one tried to associate when |
2194 | * we had just checked the ieee->state and we was going to start the | 2194 | * we had just checked the ieee->state and we was going to start the |
2195 | * scan) beacause in ibss mode the ieee80211_new_net function, when | 2195 | * scan) because in ibss mode the ieee80211_new_net function, when |
2196 | * finds a good net, just set the ieee->state to IEEE80211_LINKED, | 2196 | * finds a good net, just set the ieee->state to IEEE80211_LINKED, |
2197 | * so, at worst, we waste a bit of time to initiate an unneeded syncro | 2197 | * so, at worst, we waste a bit of time to initiate an unneeded syncro |
2198 | * scan, that will stop at the first round because it sees the state | 2198 | * scan, that will stop at the first round because it sees the state |
@@ -2342,7 +2342,7 @@ void ieee80211_associate_retry_wq(struct work_struct *work) | |||
2342 | goto exit; | 2342 | goto exit; |
2343 | /* until we do not set the state to IEEE80211_NOLINK | 2343 | /* until we do not set the state to IEEE80211_NOLINK |
2344 | * there are no possibility to have someone else trying | 2344 | * there are no possibility to have someone else trying |
2345 | * to start an association procdure (we get here with | 2345 | * to start an association procedure (we get here with |
2346 | * ieee->state = IEEE80211_ASSOCIATING). | 2346 | * ieee->state = IEEE80211_ASSOCIATING). |
2347 | * When we set the state to IEEE80211_NOLINK it is possible | 2347 | * When we set the state to IEEE80211_NOLINK it is possible |
2348 | * that the RX path run an attempt to associate, but | 2348 | * that the RX path run an attempt to associate, but |
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c index e46ff2ffa09..5d204906baf 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c | |||
@@ -362,7 +362,7 @@ int ieee80211_wx_set_essid(struct ieee80211_device *ieee, | |||
362 | ieee80211_stop_protocol(ieee); | 362 | ieee80211_stop_protocol(ieee); |
363 | 363 | ||
364 | /* this is just to be sure that the GET wx callback | 364 | /* this is just to be sure that the GET wx callback |
365 | * has consisten infos. not needed otherwise | 365 | * has consistent infos. not needed otherwise |
366 | */ | 366 | */ |
367 | spin_lock_irqsave(&ieee->lock, flags); | 367 | spin_lock_irqsave(&ieee->lock, flags); |
368 | 368 | ||
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c index 552115cd760..77bb068d4a5 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c | |||
@@ -328,7 +328,7 @@ int ieee80211_rtl_xmit(struct sk_buff *skb, | |||
328 | //printk(KERN_WARNING "upper layer packet!\n"); | 328 | //printk(KERN_WARNING "upper layer packet!\n"); |
329 | spin_lock_irqsave(&ieee->lock, flags); | 329 | spin_lock_irqsave(&ieee->lock, flags); |
330 | 330 | ||
331 | /* If there is no driver handler to take the TXB, dont' bother | 331 | /* If there is no driver handler to take the TXB, don't bother |
332 | * creating it... */ | 332 | * creating it... */ |
333 | if ((!ieee->hard_start_xmit && !(ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE))|| | 333 | if ((!ieee->hard_start_xmit && !(ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE))|| |
334 | ((!ieee->softmac_data_hard_start_xmit && (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)))) { | 334 | ((!ieee->softmac_data_hard_start_xmit && (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)))) { |
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c index ca414a915a4..c7917b24425 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c | |||
@@ -363,7 +363,7 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee, | |||
363 | (*crypt)->priv); | 363 | (*crypt)->priv); |
364 | sec.flags |= (1 << key); | 364 | sec.flags |= (1 << key); |
365 | /* This ensures a key will be activated if no key is | 365 | /* This ensures a key will be activated if no key is |
366 | * explicitely set */ | 366 | * explicitly set */ |
367 | if (key == sec.active_key) | 367 | if (key == sec.active_key) |
368 | sec.flags |= SEC_ACTIVE_KEY; | 368 | sec.flags |= SEC_ACTIVE_KEY; |
369 | ieee->tx_keyidx = key;//by wb 080312 | 369 | ieee->tx_keyidx = key;//by wb 080312 |
diff --git a/drivers/staging/rtl8187se/r8180.h b/drivers/staging/rtl8187se/r8180.h index a2c46ae4a40..2682afbac4f 100644 --- a/drivers/staging/rtl8187se/r8180.h +++ b/drivers/staging/rtl8187se/r8180.h | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver | 12 | Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver |
13 | 13 | ||
14 | We want to tanks the Authors of those projects and the Ndiswrapper | 14 | We want to thanks the Authors of those projects and the Ndiswrapper |
15 | project Authors. | 15 | project Authors. |
16 | */ | 16 | */ |
17 | 17 | ||
@@ -514,12 +514,12 @@ typedef struct r8180_priv | |||
514 | bool bDefaultAntenna1; | 514 | bool bDefaultAntenna1; |
515 | u8 SignalStrength; | 515 | u8 SignalStrength; |
516 | long Stats_SignalStrength; | 516 | long Stats_SignalStrength; |
517 | long LastSignalStrengthInPercent; // In percentange, used for smoothing, e.g. Moving Average. | 517 | long LastSignalStrengthInPercent; // In percentage, used for smoothing, e.g. Moving Average. |
518 | u8 SignalQuality; // in 0-100 index. | 518 | u8 SignalQuality; // in 0-100 index. |
519 | long Stats_SignalQuality; | 519 | long Stats_SignalQuality; |
520 | long RecvSignalPower; // in dBm. | 520 | long RecvSignalPower; // in dBm. |
521 | long Stats_RecvSignalPower; | 521 | long Stats_RecvSignalPower; |
522 | u8 LastRxPktAntenna; // +by amy 080312 Antenn which received the lasted packet. 0: Aux, 1:Main. Added by Roger, 2008.01.25. | 522 | u8 LastRxPktAntenna; // +by amy 080312 Antenna which received the lasted packet. 0: Aux, 1:Main. Added by Roger, 2008.01.25. |
523 | u32 AdRxOkCnt; | 523 | u32 AdRxOkCnt; |
524 | long AdRxSignalStrength; | 524 | long AdRxSignalStrength; |
525 | u8 CurrAntennaIndex; // Index to current Antenna (both Tx and Rx). | 525 | u8 CurrAntennaIndex; // Index to current Antenna (both Tx and Rx). |
@@ -530,7 +530,7 @@ typedef struct r8180_priv | |||
530 | long AdRxSsThreshold; // Signal strength threshold to switch antenna. | 530 | long AdRxSsThreshold; // Signal strength threshold to switch antenna. |
531 | long AdMaxRxSsThreshold; // Max value of AdRxSsThreshold. | 531 | long AdMaxRxSsThreshold; // Max value of AdRxSsThreshold. |
532 | bool bAdSwitchedChecking; // TRUE if we shall shall check Rx signal strength for last time switching antenna. | 532 | bool bAdSwitchedChecking; // TRUE if we shall shall check Rx signal strength for last time switching antenna. |
533 | long AdRxSsBeforeSwitched; // Rx signal strength before we swithed antenna. | 533 | long AdRxSsBeforeSwitched; // Rx signal strength before we switched antenna. |
534 | struct timer_list SwAntennaDiversityTimer; | 534 | struct timer_list SwAntennaDiversityTimer; |
535 | //by amy for antenna | 535 | //by amy for antenna |
536 | //{by amy 080312 | 536 | //{by amy 080312 |
@@ -553,7 +553,7 @@ typedef struct r8180_priv | |||
553 | bool bDigMechanism; // TRUE if DIG is enabled, FALSE ow. | 553 | bool bDigMechanism; // TRUE if DIG is enabled, FALSE ow. |
554 | bool bRegHighPowerMechanism; // For High Power Mechanism. 061010, by rcnjko. | 554 | bool bRegHighPowerMechanism; // For High Power Mechanism. 061010, by rcnjko. |
555 | u32 FalseAlarmRegValue; | 555 | u32 FalseAlarmRegValue; |
556 | u8 RegDigOfdmFaUpTh; // Upper threhold of OFDM false alarm, which is used in DIG. | 556 | u8 RegDigOfdmFaUpTh; // Upper threshold of OFDM false alarm, which is used in DIG. |
557 | u8 DIG_NumberFallbackVote; | 557 | u8 DIG_NumberFallbackVote; |
558 | u8 DIG_NumberUpgradeVote; | 558 | u8 DIG_NumberUpgradeVote; |
559 | // For HW antenna diversity, added by Roger, 2008.01.30. | 559 | // For HW antenna diversity, added by Roger, 2008.01.30. |
diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c index 4fe52f6b003..a513ec73ea1 100644 --- a/drivers/staging/rtl8187se/r8180_core.c +++ b/drivers/staging/rtl8187se/r8180_core.c | |||
@@ -1329,7 +1329,7 @@ u16 N_DBPSOfRate(u16 DataRate) | |||
1329 | } | 1329 | } |
1330 | 1330 | ||
1331 | /* | 1331 | /* |
1332 | * For Netgear case, they want good-looking singal strength. | 1332 | * For Netgear case, they want good-looking signal strength. |
1333 | */ | 1333 | */ |
1334 | long NetgearSignalStrengthTranslate(long LastSS, long CurrSS) | 1334 | long NetgearSignalStrengthTranslate(long LastSS, long CurrSS) |
1335 | { | 1335 | { |
@@ -1380,7 +1380,7 @@ long TranslateToDbm8185(u8 SignalStrengthIndex) | |||
1380 | 1380 | ||
1381 | /* | 1381 | /* |
1382 | * Perform signal smoothing for dynamic mechanism. | 1382 | * Perform signal smoothing for dynamic mechanism. |
1383 | * This is different with PerformSignalSmoothing8185 in smoothing fomula. | 1383 | * This is different with PerformSignalSmoothing8185 in smoothing formula. |
1384 | * No dramatic adjustion is apply because dynamic mechanism need some degree | 1384 | * No dramatic adjustion is apply because dynamic mechanism need some degree |
1385 | * of correctness. Ported from 8187B. | 1385 | * of correctness. Ported from 8187B. |
1386 | */ | 1386 | */ |
@@ -1535,7 +1535,7 @@ void rtl8180_rx(struct net_device *dev) | |||
1535 | /* HW is probably passing several buggy frames | 1535 | /* HW is probably passing several buggy frames |
1536 | * without FD or LD flag set. | 1536 | * without FD or LD flag set. |
1537 | * Throw this garbage away to prevent skb | 1537 | * Throw this garbage away to prevent skb |
1538 | * memory exausting | 1538 | * memory exhausting |
1539 | */ | 1539 | */ |
1540 | if (!priv->rx_skb_complete) | 1540 | if (!priv->rx_skb_complete) |
1541 | dev_kfree_skb_any(priv->rx_skb); | 1541 | dev_kfree_skb_any(priv->rx_skb); |
@@ -1648,14 +1648,14 @@ void rtl8180_rx(struct net_device *dev) | |||
1648 | priv->Stats_SignalQuality = (long)(priv->Stats_SignalQuality * 5 + (long)priv->SignalQuality + 5) / 6; | 1648 | priv->Stats_SignalQuality = (long)(priv->Stats_SignalQuality * 5 + (long)priv->SignalQuality + 5) / 6; |
1649 | priv->Stats_RecvSignalPower = (long)(priv->Stats_RecvSignalPower * 5 + priv->RecvSignalPower - 1) / 6; | 1649 | priv->Stats_RecvSignalPower = (long)(priv->Stats_RecvSignalPower * 5 + priv->RecvSignalPower - 1) / 6; |
1650 | 1650 | ||
1651 | /* Figure out which antenna that received the lasted packet. */ | 1651 | /* Figure out which antenna that received the last packet. */ |
1652 | priv->LastRxPktAntenna = Antenna ? 1 : 0; /* 0: aux, 1: main. */ | 1652 | priv->LastRxPktAntenna = Antenna ? 1 : 0; /* 0: aux, 1: main. */ |
1653 | SwAntennaDiversityRxOk8185(dev, priv->SignalStrength); | 1653 | SwAntennaDiversityRxOk8185(dev, priv->SignalStrength); |
1654 | } | 1654 | } |
1655 | 1655 | ||
1656 | if (first) { | 1656 | if (first) { |
1657 | if (!priv->rx_skb_complete) { | 1657 | if (!priv->rx_skb_complete) { |
1658 | /* seems that HW sometimes fails to reiceve and | 1658 | /* seems that HW sometimes fails to receive and |
1659 | doesn't provide the last descriptor */ | 1659 | doesn't provide the last descriptor */ |
1660 | dev_kfree_skb_any(priv->rx_skb); | 1660 | dev_kfree_skb_any(priv->rx_skb); |
1661 | priv->stats.rxnolast++; | 1661 | priv->stats.rxnolast++; |
@@ -1672,7 +1672,7 @@ void rtl8180_rx(struct net_device *dev) | |||
1672 | priv->rx_skb_complete = 0; | 1672 | priv->rx_skb_complete = 0; |
1673 | priv->rx_skb->dev = dev; | 1673 | priv->rx_skb->dev = dev; |
1674 | } else { | 1674 | } else { |
1675 | /* if we are here we should have already RXed | 1675 | /* if we are here we should have already RXed |
1676 | * the first frame. | 1676 | * the first frame. |
1677 | * If we get here and the skb is not allocated then | 1677 | * If we get here and the skb is not allocated then |
1678 | * we have just throw out garbage (skb not allocated) | 1678 | * we have just throw out garbage (skb not allocated) |
@@ -1821,15 +1821,15 @@ rate) { | |||
1821 | /* | 1821 | /* |
1822 | * This is a rough attempt to TX a frame | 1822 | * This is a rough attempt to TX a frame |
1823 | * This is called by the ieee 80211 stack to TX management frames. | 1823 | * This is called by the ieee 80211 stack to TX management frames. |
1824 | * If the ring is full packet are dropped (for data frame the queue | 1824 | * If the ring is full packets are dropped (for data frame the queue |
1825 | * is stopped before this can happen). For this reason it is better | 1825 | * is stopped before this can happen). For this reason it is better |
1826 | * if the descriptors are larger than the largest management frame | 1826 | * if the descriptors are larger than the largest management frame |
1827 | * we intend to TX: i'm unsure what the HW does if it will not found | 1827 | * we intend to TX: i'm unsure what the HW does if it will not find |
1828 | * the last fragment of a frame because it has been dropped... | 1828 | * the last fragment of a frame because it has been dropped... |
1829 | * Since queues for Management and Data frames are different we | 1829 | * Since queues for Management and Data frames are different we |
1830 | * might use a different lock than tx_lock (for example mgmt_tx_lock) | 1830 | * might use a different lock than tx_lock (for example mgmt_tx_lock) |
1831 | */ | 1831 | */ |
1832 | /* these function may loops if invoked with 0 descriptors or 0 len buffer */ | 1832 | /* these function may loop if invoked with 0 descriptors or 0 len buffer */ |
1833 | int rtl8180_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1833 | int rtl8180_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) |
1834 | { | 1834 | { |
1835 | struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev); | 1835 | struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev); |
@@ -2378,7 +2378,7 @@ void rtl8180_wmm_param_update(struct work_struct *work) | |||
2378 | u8 u1bAIFS; | 2378 | u8 u1bAIFS; |
2379 | u32 u4bAcParam; | 2379 | u32 u4bAcParam; |
2380 | pAcParam = (PAC_PARAM)(&AcParam); | 2380 | pAcParam = (PAC_PARAM)(&AcParam); |
2381 | /* Retrive paramters to udpate. */ | 2381 | /* Retrieve paramters to update. */ |
2382 | u1bAIFS = pAcParam->f.AciAifsn.f.AIFSN * (((mode&IEEE_G) == IEEE_G) ? 9 : 20) + aSifsTime; | 2382 | u1bAIFS = pAcParam->f.AciAifsn.f.AIFSN * (((mode&IEEE_G) == IEEE_G) ? 9 : 20) + aSifsTime; |
2383 | u4bAcParam = ((((u32)(pAcParam->f.TXOPLimit))<<AC_PARAM_TXOP_LIMIT_OFFSET)| | 2383 | u4bAcParam = ((((u32)(pAcParam->f.TXOPLimit))<<AC_PARAM_TXOP_LIMIT_OFFSET)| |
2384 | (((u32)(pAcParam->f.Ecw.f.ECWmax))<<AC_PARAM_ECW_MAX_OFFSET)| | 2384 | (((u32)(pAcParam->f.Ecw.f.ECWmax))<<AC_PARAM_ECW_MAX_OFFSET)| |
@@ -2414,7 +2414,7 @@ void rtl8180_wmm_param_update(struct work_struct *work) | |||
2414 | u8 u1bAIFS; | 2414 | u8 u1bAIFS; |
2415 | u32 u4bAcParam; | 2415 | u32 u4bAcParam; |
2416 | 2416 | ||
2417 | /* Retrive paramters to udpate. */ | 2417 | /* Retrieve paramters to update. */ |
2418 | eACI = pAcParam->f.AciAifsn.f.ACI; | 2418 | eACI = pAcParam->f.AciAifsn.f.ACI; |
2419 | /* Mode G/A: slotTimeTimer = 9; Mode B: 20 */ | 2419 | /* Mode G/A: slotTimeTimer = 9; Mode B: 20 */ |
2420 | u1bAIFS = pAcParam->f.AciAifsn.f.AIFSN * (((mode&IEEE_G) == IEEE_G) ? 9 : 20) + aSifsTime; | 2420 | u1bAIFS = pAcParam->f.AciAifsn.f.AIFSN * (((mode&IEEE_G) == IEEE_G) ? 9 : 20) + aSifsTime; |
@@ -2700,7 +2700,7 @@ short rtl8180_init(struct net_device *dev) | |||
2700 | priv->bTxPowerTrack = false; | 2700 | priv->bTxPowerTrack = false; |
2701 | priv->ThermalMeter = 0; | 2701 | priv->ThermalMeter = 0; |
2702 | priv->FalseAlarmRegValue = 0; | 2702 | priv->FalseAlarmRegValue = 0; |
2703 | priv->RegDigOfdmFaUpTh = 0xc; /* Upper threhold of OFDM false alarm, which is used in DIG. */ | 2703 | priv->RegDigOfdmFaUpTh = 0xc; /* Upper threshold of OFDM false alarm, which is used in DIG. */ |
2704 | priv->DIG_NumberFallbackVote = 0; | 2704 | priv->DIG_NumberFallbackVote = 0; |
2705 | priv->DIG_NumberUpgradeVote = 0; | 2705 | priv->DIG_NumberUpgradeVote = 0; |
2706 | priv->LastSignalStrengthInPercent = 0; | 2706 | priv->LastSignalStrengthInPercent = 0; |
@@ -2896,7 +2896,7 @@ short rtl8180_init(struct net_device *dev) | |||
2896 | priv->chtxpwr_ofdm[i+1] = (word & 0xff00) >> 8; | 2896 | priv->chtxpwr_ofdm[i+1] = (word & 0xff00) >> 8; |
2897 | } | 2897 | } |
2898 | 2898 | ||
2899 | /* 3Read crystal calibtration and thermal meter indication on 87SE. */ | 2899 | /* 3Read crystal calibration and thermal meter indication on 87SE. */ |
2900 | eeprom_93cx6_read(&eeprom, EEPROM_RSV>>1, &tmpu16); | 2900 | eeprom_93cx6_read(&eeprom, EEPROM_RSV>>1, &tmpu16); |
2901 | 2901 | ||
2902 | /* Crystal calibration for Xin and Xout resp. */ | 2902 | /* Crystal calibration for Xin and Xout resp. */ |
@@ -3140,7 +3140,7 @@ void rtl8180_adapter_start(struct net_device *dev) | |||
3140 | 3140 | ||
3141 | /* | 3141 | /* |
3142 | * The following is very strange. seems to be that 1 means test mode, | 3142 | * The following is very strange. seems to be that 1 means test mode, |
3143 | * but we need to acknolwledges the nic when a packet is ready | 3143 | * but we need to acknowledges the nic when a packet is ready |
3144 | * although we set it to 0 | 3144 | * although we set it to 0 |
3145 | */ | 3145 | */ |
3146 | 3146 | ||
@@ -3971,7 +3971,7 @@ irqreturn_t rtl8180_interrupt(int irq, void *netdev, struct pt_regs *regs) | |||
3971 | } | 3971 | } |
3972 | 3972 | ||
3973 | if (inta == 0xffff) { | 3973 | if (inta == 0xffff) { |
3974 | /* HW disappared */ | 3974 | /* HW disappeared */ |
3975 | spin_unlock_irqrestore(&priv->irq_th_lock, flags); | 3975 | spin_unlock_irqrestore(&priv->irq_th_lock, flags); |
3976 | return IRQ_HANDLED; | 3976 | return IRQ_HANDLED; |
3977 | } | 3977 | } |
diff --git a/drivers/staging/rtl8187se/r8180_dm.c b/drivers/staging/rtl8187se/r8180_dm.c index 4d7a5951486..b8f2ba010a0 100644 --- a/drivers/staging/rtl8187se/r8180_dm.c +++ b/drivers/staging/rtl8187se/r8180_dm.c | |||
@@ -2,7 +2,7 @@ | |||
2 | #include "r8180_hw.h" | 2 | #include "r8180_hw.h" |
3 | #include "r8180_93cx6.h" | 3 | #include "r8180_93cx6.h" |
4 | 4 | ||
5 | /* Return TRUE if we shall perform High Power Mecahnism, FALSE otherwise. */ | 5 | /* Return TRUE if we shall perform High Power Mechanism, FALSE otherwise. */ |
6 | #define RATE_ADAPTIVE_TIMER_PERIOD 300 | 6 | #define RATE_ADAPTIVE_TIMER_PERIOD 300 |
7 | 7 | ||
8 | bool CheckHighPower(struct net_device *dev) | 8 | bool CheckHighPower(struct net_device *dev) |
@@ -105,7 +105,7 @@ void rtl8180_tx_pw_wq(struct work_struct *work) | |||
105 | 105 | ||
106 | 106 | ||
107 | /* | 107 | /* |
108 | * Return TRUE if we shall perform DIG Mecahnism, FALSE otherwise. | 108 | * Return TRUE if we shall perform DIG Mechanism, FALSE otherwise. |
109 | */ | 109 | */ |
110 | bool CheckDig(struct net_device *dev) | 110 | bool CheckDig(struct net_device *dev) |
111 | { | 111 | { |
@@ -507,7 +507,7 @@ void StaRateAdaptive87SE(struct net_device *dev) | |||
507 | * and retry rate. | 507 | * and retry rate. |
508 | * (3) Remove all Initial Gain Updates over OFDM rate. To avoid the complicated | 508 | * (3) Remove all Initial Gain Updates over OFDM rate. To avoid the complicated |
509 | * situation, Initial Gain Update is upon on DIG mechanism except CCK rate. | 509 | * situation, Initial Gain Update is upon on DIG mechanism except CCK rate. |
510 | * (4) Add the mehanism of trying to upgrade tx rate. | 510 | * (4) Add the mechanism of trying to upgrade tx rate. |
511 | * (5) Record the information of upping tx rate to avoid trying upping tx rate constantly. | 511 | * (5) Record the information of upping tx rate to avoid trying upping tx rate constantly. |
512 | * | 512 | * |
513 | */ | 513 | */ |
@@ -528,7 +528,7 @@ void StaRateAdaptive87SE(struct net_device *dev) | |||
528 | if (priv->bTryuping == true) { | 528 | if (priv->bTryuping == true) { |
529 | /* 2 For Test Upgrading mechanism | 529 | /* 2 For Test Upgrading mechanism |
530 | * Note: | 530 | * Note: |
531 | * Sometimes the throughput is upon on the capability bwtween the AP and NIC, | 531 | * Sometimes the throughput is upon on the capability between the AP and NIC, |
532 | * thus the low data rate does not improve the performance. | 532 | * thus the low data rate does not improve the performance. |
533 | * We randomly upgrade the data rate and check if the retry rate is improved. | 533 | * We randomly upgrade the data rate and check if the retry rate is improved. |
534 | */ | 534 | */ |
@@ -704,7 +704,7 @@ void StaRateAdaptive87SE(struct net_device *dev) | |||
704 | 704 | ||
705 | /* | 705 | /* |
706 | * The difference in throughput between 48Mbps and 36Mbps is 8M. | 706 | * The difference in throughput between 48Mbps and 36Mbps is 8M. |
707 | * So, we must be carefully in this rate scale. Isaiah 2008-02-15. | 707 | * So, we must be careful in this rate scale. Isaiah 2008-02-15. |
708 | */ | 708 | */ |
709 | if (((priv->CurrentOperaRate == 72) || (priv->CurrentOperaRate == 48) || (priv->CurrentOperaRate == 36)) && | 709 | if (((priv->CurrentOperaRate == 72) || (priv->CurrentOperaRate == 48) || (priv->CurrentOperaRate == 36)) && |
710 | (priv->FailTxRateCount > 2)) | 710 | (priv->FailTxRateCount > 2)) |
@@ -1009,7 +1009,7 @@ void SwAntennaDiversity(struct net_device *dev) | |||
1009 | if (priv->AdCheckPeriod > priv->AdMaxCheckPeriod) | 1009 | if (priv->AdCheckPeriod > priv->AdMaxCheckPeriod) |
1010 | priv->AdCheckPeriod = priv->AdMaxCheckPeriod; | 1010 | priv->AdCheckPeriod = priv->AdMaxCheckPeriod; |
1011 | 1011 | ||
1012 | /* Wrong deceision => switch back. */ | 1012 | /* Wrong decision => switch back. */ |
1013 | SwitchAntenna(dev); | 1013 | SwitchAntenna(dev); |
1014 | } else { | 1014 | } else { |
1015 | /* Rx Signal Strength is improved. */ | 1015 | /* Rx Signal Strength is improved. */ |
@@ -1057,7 +1057,7 @@ void SwAntennaDiversity(struct net_device *dev) | |||
1057 | } | 1057 | } |
1058 | /* | 1058 | /* |
1059 | * <Roger_Notes> We evaluate Rx signal strength ONLY when default antenna | 1059 | * <Roger_Notes> We evaluate Rx signal strength ONLY when default antenna |
1060 | * didn't changed by HW evaluation. | 1060 | * didn't change by HW evaluation. |
1061 | * 2008.02.27. | 1061 | * 2008.02.27. |
1062 | * | 1062 | * |
1063 | * [TRC Dell Lab] SignalStrength is inaccuracy. Isaiah 2008-03-05 | 1063 | * [TRC Dell Lab] SignalStrength is inaccuracy. Isaiah 2008-03-05 |
@@ -1098,7 +1098,7 @@ void SwAntennaDiversity(struct net_device *dev) | |||
1098 | priv->AdAuxAntennaRxOkCnt = 0; | 1098 | priv->AdAuxAntennaRxOkCnt = 0; |
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | /* Return TRUE if we shall perform Tx Power Tracking Mecahnism, FALSE otherwise. */ | 1101 | /* Return TRUE if we shall perform Tx Power Tracking Mechanism, FALSE otherwise. */ |
1102 | bool CheckTxPwrTracking(struct net_device *dev) | 1102 | bool CheckTxPwrTracking(struct net_device *dev) |
1103 | { | 1103 | { |
1104 | struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev); | 1104 | struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev); |
diff --git a/drivers/staging/rtl8187se/r8180_rtl8225z2.c b/drivers/staging/rtl8187se/r8180_rtl8225z2.c index ee5b867fd0d..d28c1d99608 100644 --- a/drivers/staging/rtl8187se/r8180_rtl8225z2.c +++ b/drivers/staging/rtl8187se/r8180_rtl8225z2.c | |||
@@ -190,7 +190,7 @@ static void rtl8225_SetTXPowerLevel(struct net_device *dev, short ch) | |||
190 | write_phy_cck(dev, 0x44 + i, power); | 190 | write_phy_cck(dev, 0x44 + i, power); |
191 | } | 191 | } |
192 | 192 | ||
193 | /* FIXME Is this delay really needeed ? */ | 193 | /* FIXME Is this delay really needed ? */ |
194 | force_pci_posting(dev); | 194 | force_pci_posting(dev); |
195 | mdelay(1); | 195 | mdelay(1); |
196 | 196 | ||
@@ -479,7 +479,7 @@ s8 DbmToTxPwrIdx(struct r8180_priv *priv, WIRELESS_MODE WirelessMode, | |||
479 | 479 | ||
480 | /* | 480 | /* |
481 | * TRUE if we want to use a default implementation. | 481 | * TRUE if we want to use a default implementation. |
482 | * We shall set it to FALSE when we have exact translation formular | 482 | * We shall set it to FALSE when we have exact translation formula |
483 | * for target IC. 070622, by rcnjko. | 483 | * for target IC. 070622, by rcnjko. |
484 | */ | 484 | */ |
485 | if (bUseDefault) { | 485 | if (bUseDefault) { |
diff --git a/drivers/staging/rtl8187se/r8180_wx.c b/drivers/staging/rtl8187se/r8180_wx.c index 303ec691262..46ee6f47f52 100644 --- a/drivers/staging/rtl8187se/r8180_wx.c +++ b/drivers/staging/rtl8187se/r8180_wx.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver. | 14 | Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver. |
15 | 15 | ||
16 | We want to tanks the Authors of those projects and the Ndiswrapper | 16 | We want to thanks the Authors of those projects and the Ndiswrapper |
17 | project Authors. | 17 | project Authors. |
18 | */ | 18 | */ |
19 | 19 | ||
@@ -1181,7 +1181,7 @@ static iw_handler r8180_wx_handlers[] = { | |||
1181 | r8180_wx_set_wap, /* SIOCSIWAP */ | 1181 | r8180_wx_set_wap, /* SIOCSIWAP */ |
1182 | r8180_wx_get_wap, /* SIOCGIWAP */ | 1182 | r8180_wx_get_wap, /* SIOCGIWAP */ |
1183 | r8180_wx_set_mlme, /* SIOCSIWMLME*/ | 1183 | r8180_wx_set_mlme, /* SIOCSIWMLME*/ |
1184 | dummy, /* SIOCGIWAPLIST -- depricated */ | 1184 | dummy, /* SIOCGIWAPLIST -- deprecated */ |
1185 | r8180_wx_set_scan, /* SIOCSIWSCAN */ | 1185 | r8180_wx_set_scan, /* SIOCSIWSCAN */ |
1186 | r8180_wx_get_scan, /* SIOCGIWSCAN */ | 1186 | r8180_wx_get_scan, /* SIOCGIWSCAN */ |
1187 | r8180_wx_set_essid, /* SIOCSIWESSID */ | 1187 | r8180_wx_set_essid, /* SIOCSIWESSID */ |
@@ -1369,7 +1369,7 @@ static inline int is_same_network(struct ieee80211_network *src, | |||
1369 | (dst->capability & WLAN_CAPABILITY_BSS))); | 1369 | (dst->capability & WLAN_CAPABILITY_BSS))); |
1370 | } | 1370 | } |
1371 | 1371 | ||
1372 | /* WB modefied to show signal to GUI on 18-01-2008 */ | 1372 | /* WB modified to show signal to GUI on 18-01-2008 */ |
1373 | static struct iw_statistics *r8180_get_wireless_stats(struct net_device *dev) | 1373 | static struct iw_statistics *r8180_get_wireless_stats(struct net_device *dev) |
1374 | { | 1374 | { |
1375 | struct r8180_priv *priv = ieee80211_priv(dev); | 1375 | struct r8180_priv *priv = ieee80211_priv(dev); |
diff --git a/drivers/staging/rtl8187se/r8180_wx.h b/drivers/staging/rtl8187se/r8180_wx.h index 735d03dceed..40819140311 100644 --- a/drivers/staging/rtl8187se/r8180_wx.h +++ b/drivers/staging/rtl8187se/r8180_wx.h | |||
@@ -7,7 +7,7 @@ | |||
7 | Parts of this driver are based on the rtl8180 driver skeleton from Patric Schenke & Andres Salomon | 7 | Parts of this driver are based on the rtl8180 driver skeleton from Patric Schenke & Andres Salomon |
8 | Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver | 8 | Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver |
9 | 9 | ||
10 | We want to tanks the Authors of such projects and the Ndiswrapper project Authors. | 10 | We want to thanks the Authors of such projects and the Ndiswrapper project Authors. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | /* this file (will) contains wireless extension handlers*/ | 13 | /* this file (will) contains wireless extension handlers*/ |
diff --git a/drivers/staging/rtl8187se/r8185b_init.c b/drivers/staging/rtl8187se/r8185b_init.c index af9be964dbf..914495783c0 100644 --- a/drivers/staging/rtl8187se/r8185b_init.c +++ b/drivers/staging/rtl8187se/r8185b_init.c | |||
@@ -1008,7 +1008,7 @@ void ActUpdateChannelAccessSetting(struct net_device *dev, | |||
1008 | u8 u1bAIFS; | 1008 | u8 u1bAIFS; |
1009 | u32 u4bAcParam; | 1009 | u32 u4bAcParam; |
1010 | 1010 | ||
1011 | /* Retrive paramters to udpate. */ | 1011 | /* Retrieve paramters to update. */ |
1012 | eACI = pAcParam->f.AciAifsn.f.ACI; | 1012 | eACI = pAcParam->f.AciAifsn.f.ACI; |
1013 | u1bAIFS = pAcParam->f.AciAifsn.f.AIFSN * ChnlAccessSetting->SlotTimeTimer + aSifsTime; | 1013 | u1bAIFS = pAcParam->f.AciAifsn.f.AIFSN * ChnlAccessSetting->SlotTimeTimer + aSifsTime; |
1014 | u4bAcParam = ((((u32)(pAcParam->f.TXOPLimit)) << AC_PARAM_TXOP_LIMIT_OFFSET) | | 1014 | u4bAcParam = ((((u32)(pAcParam->f.TXOPLimit)) << AC_PARAM_TXOP_LIMIT_OFFSET) | |
@@ -1104,7 +1104,7 @@ void ActSetWirelessMode8185(struct net_device *dev, u8 btWirelessMode) | |||
1104 | return; | 1104 | return; |
1105 | } | 1105 | } |
1106 | 1106 | ||
1107 | /* 1. Assign wireless mode to swtich if necessary. */ | 1107 | /* 1. Assign wireless mode to switch if necessary. */ |
1108 | if (btWirelessMode == WIRELESS_MODE_AUTO) { | 1108 | if (btWirelessMode == WIRELESS_MODE_AUTO) { |
1109 | if ((btSupportedWirelessMode & WIRELESS_MODE_A)) { | 1109 | if ((btSupportedWirelessMode & WIRELESS_MODE_A)) { |
1110 | btWirelessMode = WIRELESS_MODE_A; | 1110 | btWirelessMode = WIRELESS_MODE_A; |
@@ -1124,7 +1124,7 @@ void ActSetWirelessMode8185(struct net_device *dev, u8 btWirelessMode) | |||
1124 | * 2. Swtich band: RF or BB specific actions, | 1124 | * 2. Swtich band: RF or BB specific actions, |
1125 | * for example, refresh tables in omc8255, or change initial gain if necessary. | 1125 | * for example, refresh tables in omc8255, or change initial gain if necessary. |
1126 | * Nothing to do for Zebra to switch band. | 1126 | * Nothing to do for Zebra to switch band. |
1127 | * Update current wireless mode if we swtich to specified band successfully. | 1127 | * Update current wireless mode if we switch to specified band successfully. |
1128 | */ | 1128 | */ |
1129 | 1129 | ||
1130 | ieee->mode = (WIRELESS_MODE)btWirelessMode; | 1130 | ieee->mode = (WIRELESS_MODE)btWirelessMode; |
@@ -1242,7 +1242,7 @@ bool MgntDisconnect(struct net_device *dev, u8 asRsn) | |||
1242 | */ | 1242 | */ |
1243 | MgntDisconnectAP(dev, asRsn); | 1243 | MgntDisconnectAP(dev, asRsn); |
1244 | } | 1244 | } |
1245 | /* Inidicate Disconnect, 2005.02.23, by rcnjko. */ | 1245 | /* Indicate Disconnect, 2005.02.23, by rcnjko. */ |
1246 | } | 1246 | } |
1247 | return true; | 1247 | return true; |
1248 | } | 1248 | } |
@@ -1416,7 +1416,7 @@ void IPSEnter(struct net_device *dev) | |||
1416 | * Do not enter IPS in the following conditions: | 1416 | * Do not enter IPS in the following conditions: |
1417 | * (1) RF is already OFF or Sleep | 1417 | * (1) RF is already OFF or Sleep |
1418 | * (2) bSwRfProcessing (indicates the IPS is still under going) | 1418 | * (2) bSwRfProcessing (indicates the IPS is still under going) |
1419 | * (3) Connectted (only disconnected can trigger IPS) | 1419 | * (3) Connected (only disconnected can trigger IPS) |
1420 | * (4) IBSS (send Beacon) | 1420 | * (4) IBSS (send Beacon) |
1421 | * (5) AP mode (send Beacon) | 1421 | * (5) AP mode (send Beacon) |
1422 | */ | 1422 | */ |