Commit be10ac2b authored by Justin P. Mattock's avatar Justin P. Mattock Committed by Greg Kroah-Hartman

staging: rtl8712: Fix typos.

Signed-off-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5011a26
...@@ -146,7 +146,7 @@ struct dvobj_priv { ...@@ -146,7 +146,7 @@ struct dvobj_priv {
/** /**
* struct _adapter - the main adapter structure for this device. * struct _adapter - the main adapter structure for this device.
* *
* bup: True indicates that the interface is Up. * bup: True indicates that the interface is up.
*/ */
struct _adapter { struct _adapter {
struct dvobj_priv dvobjpriv; struct dvobj_priv dvobjpriv;
......
...@@ -705,7 +705,7 @@ enum ieee80211_state { ...@@ -705,7 +705,7 @@ enum ieee80211_state {
IEEE80211_ASSOCIATING_RETRY, IEEE80211_ASSOCIATING_RETRY,
/* the association procedure is sending AUTH request*/ /* the association procedure is sending AUTH request*/
IEEE80211_ASSOCIATING_AUTHENTICATING, IEEE80211_ASSOCIATING_AUTHENTICATING,
/* the association procedure has successfully authentcated /* the association procedure has successfully authenticated
* and is sending association request * and is sending association request
*/ */
IEEE80211_ASSOCIATING_AUTHENTICATED, IEEE80211_ASSOCIATING_AUTHENTICATED,
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
******************************************************************************/ ******************************************************************************/
/* /*
* INET An implementation of the TCP/IP protocol suite for the LINUX * INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket * operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level. * interface as the means of communication with the user level.
* *
* Global definitions for the Ethernet IEEE 802.3 interface. * Global definitions for the Ethernet IEEE 802.3 interface.
......
...@@ -52,7 +52,7 @@ static int lbkmode = RTL8712_AIR_TRX; ...@@ -52,7 +52,7 @@ static int lbkmode = RTL8712_AIR_TRX;
static int hci = RTL8712_USB; static int hci = RTL8712_USB;
static int ampdu_enable = 1;/*for enable tx_ampdu*/ static int ampdu_enable = 1;/*for enable tx_ampdu*/
/* The video_mode variable is for vedio mode.*/ /* The video_mode variable is for video mode.*/
/* It may be specify when inserting module with video_mode=1 parameter.*/ /* It may be specify when inserting module with video_mode=1 parameter.*/
static int video_mode = 1; /* enable video mode*/ static int video_mode = 1; /* enable video mode*/
...@@ -248,7 +248,7 @@ static u32 start_drv_threads(struct _adapter *padapter) ...@@ -248,7 +248,7 @@ static u32 start_drv_threads(struct _adapter *padapter)
void r8712_stop_drv_threads(struct _adapter *padapter) void r8712_stop_drv_threads(struct _adapter *padapter)
{ {
/*Below is to termindate r8712_cmd_thread & event_thread...*/ /*Below is to terminate r8712_cmd_thread & event_thread...*/
up(&padapter->cmdpriv.cmd_queue_sema); up(&padapter->cmdpriv.cmd_queue_sema);
if (padapter->cmdThread) if (padapter->cmdThread)
_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema); _down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);
......
...@@ -69,7 +69,7 @@ static void check_hw_pbc(struct _adapter *padapter) ...@@ -69,7 +69,7 @@ static void check_hw_pbc(struct _adapter *padapter)
* After trigger PBC, the variable will be set to false */ * After trigger PBC, the variable will be set to false */
DBG_8712("CheckPbcGPIO - PBC is pressed !!!!\n"); DBG_8712("CheckPbcGPIO - PBC is pressed !!!!\n");
/* 0 is the default value and it means the application monitors /* 0 is the default value and it means the application monitors
* the HW PBC doesn't privde its pid to driver. */ * the HW PBC doesn't provide its pid to driver. */
if (padapter->pid == 0) if (padapter->pid == 0)
return; return;
kill_pid(find_vpid(padapter->pid), SIGUSR1, 1); kill_pid(find_vpid(padapter->pid), SIGUSR1, 1);
...@@ -382,7 +382,7 @@ int r8712_cmd_thread(void *context) ...@@ -382,7 +382,7 @@ int r8712_cmd_thread(void *context)
*pcmdbuf = cpu_to_le32((cmdsz & 0x0000ffff) | *pcmdbuf = cpu_to_le32((cmdsz & 0x0000ffff) |
(pcmd->cmdcode << 16) | (pcmd->cmdcode << 16) |
(pcmdpriv->cmd_seq << 24)); (pcmdpriv->cmd_seq << 24));
pcmdbuf += 2 ; /* 8 bytes aligment */ pcmdbuf += 2 ; /* 8 bytes alignment */
memcpy((u8 *)pcmdbuf, pcmd->parmbuf, pcmd->cmdsz); memcpy((u8 *)pcmdbuf, pcmd->parmbuf, pcmd->cmdsz);
while (check_cmd_fifo(padapter, wr_sz) == _FAIL) { while (check_cmd_fifo(padapter, wr_sz) == _FAIL) {
if ((padapter->bDriverStopped == true) || if ((padapter->bDriverStopped == true) ||
...@@ -471,7 +471,7 @@ void r8712_event_handle(struct _adapter *padapter, uint *peventbuf) ...@@ -471,7 +471,7 @@ void r8712_event_handle(struct _adapter *padapter, uint *peventbuf)
pevt_priv->event_seq++; /* update evt_seq */ pevt_priv->event_seq++; /* update evt_seq */
if (pevt_priv->event_seq > 127) if (pevt_priv->event_seq > 127)
pevt_priv->event_seq = 0; pevt_priv->event_seq = 0;
peventbuf = peventbuf + 2; /* move to event content, 8 bytes aligment */ peventbuf = peventbuf + 2; /* move to event content, 8 bytes alignment */
if (peventbuf) { if (peventbuf) {
event_callback = wlanevents[evt_code].event_callback; event_callback = wlanevents[evt_code].event_callback;
if (event_callback) if (event_callback)
......
...@@ -121,7 +121,7 @@ enum rtl8712_h2c_cmd { ...@@ -121,7 +121,7 @@ enum rtl8712_h2c_cmd {
GEN_CMD_CODE(_GetCurDataRate) , GEN_CMD_CODE(_GetCurDataRate) ,
GEN_CMD_CODE(_GetTxRetrycnt), /* to record times that Tx retry to GEN_CMD_CODE(_GetTxRetrycnt), /* to record times that Tx retry to
* transmmit packet after association * transmit packet after association
*/ */
GEN_CMD_CODE(_GetRxRetrycnt), /* to record total number of the GEN_CMD_CODE(_GetRxRetrycnt), /* to record total number of the
* received frame with ReTry bit set in * received frame with ReTry bit set in
......
...@@ -417,7 +417,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset, ...@@ -417,7 +417,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
} else { /* write header fail */ } else { /* write header fail */
bResult = false; bResult = false;
if (0xFF == efuse_data) if (0xFF == efuse_data)
return bResult; /* not thing damaged. */ return bResult; /* nothing damaged. */
/* call rescue procedure */ /* call rescue procedure */
if (fix_header(padapter, efuse_data, efuse_addr) == if (fix_header(padapter, efuse_data, efuse_addr) ==
false) false)
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
#define GPIOSEL_BT 2 /* BT_coex*/ #define GPIOSEL_BT 2 /* BT_coex*/
#define GPIOSEL_WLANDBG 3 /* WLANDBG*/ #define GPIOSEL_WLANDBG 3 /* WLANDBG*/
#define GPIOSEL_GPIO_MASK (~(BIT(0)|BIT(1))) #define GPIOSEL_GPIO_MASK (~(BIT(0)|BIT(1)))
/* HW Readio OFF switch (GPIO BIT) */ /* HW Radio OFF switch (GPIO BIT) */
#define HAL_8192S_HW_GPIO_OFF_BIT BIT(3) #define HAL_8192S_HW_GPIO_OFF_BIT BIT(3)
#define HAL_8192S_HW_GPIO_OFF_MASK 0xF7 #define HAL_8192S_HW_GPIO_OFF_MASK 0xF7
#define HAL_8192S_HW_GPIO_WPS_BIT BIT(4) #define HAL_8192S_HW_GPIO_WPS_BIT BIT(4)
......
...@@ -83,7 +83,7 @@ struct fw_priv { /*8-bytes alignment required*/ ...@@ -83,7 +83,7 @@ struct fw_priv { /*8-bytes alignment required*/
unsigned char rfintfs; /* 0:SWSI, 1:HWSI, 2:HWPI*/ unsigned char rfintfs; /* 0:SWSI, 1:HWSI, 2:HWPI*/
unsigned char def_nettype; unsigned char def_nettype;
unsigned char turboMode; unsigned char turboMode;
unsigned char lowPowerMode;/* 0: noral mode, 1: low power mode*/ unsigned char lowPowerMode;/* 0: normal mode, 1: low power mode*/
/*--- long word 2 ----*/ /*--- long word 2 ----*/
unsigned char lbk_mode; /*0x00: normal, 0x03: MACLBK, 0x01: PHYLBK*/ unsigned char lbk_mode; /*0x00: normal, 0x03: MACLBK, 0x01: PHYLBK*/
unsigned char mp_mode; /* 1: for MP use, 0: for normal driver */ unsigned char mp_mode; /* 1: for MP use, 0: for normal driver */
...@@ -123,7 +123,7 @@ struct fw_priv { /*8-bytes alignment required*/ ...@@ -123,7 +123,7 @@ struct fw_priv { /*8-bytes alignment required*/
unsigned char rsvd053; unsigned char rsvd053;
}; };
struct fw_hdr {/*8-byte alinment required*/ struct fw_hdr {/*8-byte alignment required*/
unsigned short signature; unsigned short signature;
unsigned short version; /*0x8000 ~ 0x8FFF for FPGA version, unsigned short version; /*0x8000 ~ 0x8FFF for FPGA version,
*0x0000 ~ 0x7FFF for ASIC version,*/ *0x0000 ~ 0x7FFF for ASIC version,*/
......
...@@ -60,7 +60,7 @@ enum _LED_STATE_871x { ...@@ -60,7 +60,7 @@ enum _LED_STATE_871x {
* the # of times to blink is depend on time * the # of times to blink is depend on time
* for scanning. */ * for scanning. */
LED_NO_LINK_BLINK = 7, /* LED is blinking during no link state. */ LED_NO_LINK_BLINK = 7, /* LED is blinking during no link state. */
LED_BLINK_StartToBlink = 8,/* Customzied for Sercomm Printer LED_BLINK_StartToBlink = 8,/* Customized for Sercomm Printer
* Server case */ * Server case */
LED_BLINK_WPS = 9, /* LED is blinkg during WPS communication */ LED_BLINK_WPS = 9, /* LED is blinkg during WPS communication */
LED_TXRX_BLINK = 10, LED_TXRX_BLINK = 10,
...@@ -826,7 +826,7 @@ static void BlinkTimerCallback(unsigned long data) ...@@ -826,7 +826,7 @@ static void BlinkTimerCallback(unsigned long data)
{ {
struct LED_871x *pLed = (struct LED_871x *)data; struct LED_871x *pLed = (struct LED_871x *)data;
/* This fixed the crash problem on Fedora 12 when trying to do thei /* This fixed the crash problem on Fedora 12 when trying to do the
* insmod;ifconfig up;rmmod commands. */ * insmod;ifconfig up;rmmod commands. */
if ((pLed->padapter->bSurpriseRemoved == true) || if ((pLed->padapter->bSurpriseRemoved == true) ||
(pLed->padapter->bDriverStopped == true)) (pLed->padapter->bDriverStopped == true))
...@@ -836,7 +836,7 @@ static void BlinkTimerCallback(unsigned long data) ...@@ -836,7 +836,7 @@ static void BlinkTimerCallback(unsigned long data)
/* Description: /* Description:
* Callback function of LED BlinkWorkItem. * Callback function of LED BlinkWorkItem.
* We dispatch acture LED blink action according to LedStrategy. * We dispatch actual LED blink action according to LedStrategy.
*/ */
static void BlinkWorkItemCallback(struct work_struct *work) static void BlinkWorkItemCallback(struct work_struct *work)
{ {
......
...@@ -459,7 +459,7 @@ void r8712_rxcmd_event_hdl(struct _adapter *padapter, void *prxcmdbuf) ...@@ -459,7 +459,7 @@ void r8712_rxcmd_event_hdl(struct _adapter *padapter, void *prxcmdbuf)
cmd_seq = (u8)((le32_to_cpu(voffset) >> 24) & 0x7f); cmd_seq = (u8)((le32_to_cpu(voffset) >> 24) & 0x7f);
eid = (u8)((le32_to_cpu(voffset) >> 16) & 0xff); eid = (u8)((le32_to_cpu(voffset) >> 16) & 0xff);
r8712_event_handle(padapter, (uint *)poffset); r8712_event_handle(padapter, (uint *)poffset);
poffset += (cmd_len + 8);/*8 bytes aligment*/ poffset += (cmd_len + 8);/*8 bytes alignment*/
} while (le32_to_cpu(voffset) & BIT(31)); } while (le32_to_cpu(voffset) & BIT(31));
} }
...@@ -603,7 +603,7 @@ static int recv_indicatepkt_reorder(struct _adapter *padapter, ...@@ -603,7 +603,7 @@ static int recv_indicatepkt_reorder(struct _adapter *padapter,
} }
} }
spin_lock_irqsave(&ppending_recvframe_queue->lock, irql); spin_lock_irqsave(&ppending_recvframe_queue->lock, irql);
/*s2. check if winstart_b(indicate_seq) needs to been updated*/ /*s2. check if winstart_b(indicate_seq) needs to be updated*/
if (!check_indicate_seq(preorder_ctrl, pattrib->seq_num)) if (!check_indicate_seq(preorder_ctrl, pattrib->seq_num))
goto _err_exit; goto _err_exit;
/*s3. Insert all packet into Reorder Queue to maintain its ordering.*/ /*s3. Insert all packet into Reorder Queue to maintain its ordering.*/
......
...@@ -720,7 +720,7 @@ struct DisconnectCtrlEx_param { ...@@ -720,7 +720,7 @@ struct DisconnectCtrlEx_param {
* Result: * Result:
* 0x00: success * 0x00: success
* 0x01: success, and check Response. * 0x01: success, and check Response.
* 0x02: cmd ignored due to duplicated sequcne number * 0x02: cmd ignored due to duplicated sequence number
* 0x03: cmd dropped due to invalid cmd code * 0x03: cmd dropped due to invalid cmd code
* 0x04: reserved. * 0x04: reserved.
*/ */
......
...@@ -241,7 +241,7 @@ static inline char *translate_scan(struct _adapter *padapter, ...@@ -241,7 +241,7 @@ static inline char *translate_scan(struct _adapter *padapter,
/* Add frequency/channel */ /* Add frequency/channel */
iwe.cmd = SIOCGIWFREQ; iwe.cmd = SIOCGIWFREQ;
{ {
/* check legel index */ /* check legal index */
u8 dsconfig = pnetwork->network.Configuration.DSConfig; u8 dsconfig = pnetwork->network.Configuration.DSConfig;
if (dsconfig >= 1 && dsconfig <= sizeof( if (dsconfig >= 1 && dsconfig <= sizeof(
ieee80211_wlan_frequencies) / sizeof(long)) ieee80211_wlan_frequencies) / sizeof(long))
...@@ -809,11 +809,11 @@ static int r871x_wx_set_pmkid(struct net_device *dev, ...@@ -809,11 +809,11 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
/* /*
There are the BSSID information in the bssid.sa_data array. There are the BSSID information in the bssid.sa_data array.
If cmd is IW_PMKSA_FLUSH, it means the wpa_suppplicant wants to clear If cmd is IW_PMKSA_FLUSH, it means the wpa_supplicant wants to clear
all the PMKID information. If cmd is IW_PMKSA_ADD, it means the all the PMKID information. If cmd is IW_PMKSA_ADD, it means the
wpa_supplicant wants to add a PMKID/BSSID to driver. wpa_supplicant wants to add a PMKID/BSSID to driver.
If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to
remove a PMKID/BSSID from driver. remove a PMKID/BSSID from driver.
*/ */
if (pPMK == NULL) if (pPMK == NULL)
return -EINVAL; return -EINVAL;
...@@ -923,7 +923,7 @@ static int r8711_wx_get_range(struct net_device *dev, ...@@ -923,7 +923,7 @@ static int r8711_wx_get_range(struct net_device *dev,
range->max_qual.noise = 100; range->max_qual.noise = 100;
range->max_qual.updated = 7; /* Updated all three */ range->max_qual.updated = 7; /* Updated all three */
range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */
/* TODO: Find real 'good' to 'bad' threshol value for RSSI */ /* TODO: Find real 'good' to 'bad' threshold value for RSSI */
range->avg_qual.level = 20 + -98; range->avg_qual.level = 20 + -98;
range->avg_qual.noise = 0; range->avg_qual.noise = 0;
range->avg_qual.updated = 7; /* Updated all three */ range->avg_qual.updated = 7; /* Updated all three */
...@@ -1070,7 +1070,7 @@ static int r871x_wx_set_priv(struct net_device *dev, ...@@ -1070,7 +1070,7 @@ static int r871x_wx_set_priv(struct net_device *dev,
* MAC# of a preferred Access Point. * MAC# of a preferred Access Point.
* Currently, the request comes via Wireless Extensions' SIOCSIWAP ioctl. * Currently, the request comes via Wireless Extensions' SIOCSIWAP ioctl.
* *
* For this operation to succeed, there is no need for the interface to be Up. * For this operation to succeed, there is no need for the interface to be up.
* *
*/ */
static int r8711_wx_set_wap(struct net_device *dev, static int r8711_wx_set_wap(struct net_device *dev,
......
...@@ -264,7 +264,7 @@ void r8712_set_802_11_infrastructure_mode(struct _adapter *padapter, ...@@ -264,7 +264,7 @@ void r8712_set_802_11_infrastructure_mode(struct _adapter *padapter,
(*pold_state == Ndis802_11Infrastructure) || (*pold_state == Ndis802_11Infrastructure) ||
(*pold_state == Ndis802_11IBSS)) { (*pold_state == Ndis802_11IBSS)) {
/* will clr Linked_state before this function, /* will clr Linked_state before this function,
* we must have chked whether issue dis-assoc_cmd or * we must have checked whether issue dis-assoc_cmd or
* not */ * not */
r8712_ind_disconnect(padapter); r8712_ind_disconnect(padapter);
} }
......
...@@ -137,7 +137,7 @@ static void _free_network_nolock(struct mlme_priv *pmlmepriv, ...@@ -137,7 +137,7 @@ static void _free_network_nolock(struct mlme_priv *pmlmepriv,
/* /*
return the wlan_network with the matching addr return the wlan_network with the matching addr
Shall be calle under atomic context... Shall be called under atomic context...
to avoid possible racing condition... to avoid possible racing condition...
*/ */
static struct wlan_network *_r8712_find_network(struct __queue *scanned_queue, static struct wlan_network *_r8712_find_network(struct __queue *scanned_queue,
...@@ -255,7 +255,7 @@ void r8712_free_network_queue(struct _adapter *dev) ...@@ -255,7 +255,7 @@ void r8712_free_network_queue(struct _adapter *dev)
/* /*
return the wlan_network with the matching addr return the wlan_network with the matching addr
Shall be calle under atomic context... Shall be called under atomic context...
to avoid possible racing condition... to avoid possible racing condition...
*/ */
static struct wlan_network *r8712_find_network(struct __queue *scanned_queue, static struct wlan_network *r8712_find_network(struct __queue *scanned_queue,
...@@ -1037,7 +1037,7 @@ void r8712_cpwm_event_callback(struct _adapter *adapter, u8 *pbuf) ...@@ -1037,7 +1037,7 @@ void r8712_cpwm_event_callback(struct _adapter *adapter, u8 *pbuf)
* and the WiFi client will drop the data with seq number 0. * and the WiFi client will drop the data with seq number 0.
* So, the 8712 firmware has to inform driver with receiving the * So, the 8712 firmware has to inform driver with receiving the
* ADDBA-Req frame so that the driver can reset the * ADDBA-Req frame so that the driver can reset the
* sequence value of Rx reorder contorl. * sequence value of Rx reorder control.
*/ */
void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf) void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf)
{ {
...@@ -1775,7 +1775,7 @@ static void update_ht_cap(struct _adapter *padapter, u8 *pie, uint ie_len) ...@@ -1775,7 +1775,7 @@ static void update_ht_cap(struct _adapter *padapter, u8 *pie, uint ie_len)
phtpriv->rx_ampdu_maxlen = max_ampdu_sz; phtpriv->rx_ampdu_maxlen = max_ampdu_sz;
} }
/* for A-MPDU Rx reordering buffer control for bmc_sta & sta_info /* for A-MPDU Rx reordering buffer control for bmc_sta & sta_info
* if A-MPDU Rx is enabled, reseting rx_ordering_ctrl * if A-MPDU Rx is enabled, resetting rx_ordering_ctrl
* wstart_b(indicate_seq) to default value=0xffff * wstart_b(indicate_seq) to default value=0xffff
* todo: check if AP can send A-MPDU packets * todo: check if AP can send A-MPDU packets
*/ */
......
...@@ -69,8 +69,8 @@ since mlme_priv is a shared resource between many threads, ...@@ -69,8 +69,8 @@ since mlme_priv is a shared resource between many threads,
like ISR/Call-Back functions, the OID handlers, and even timer functions. like ISR/Call-Back functions, the OID handlers, and even timer functions.
Each _queue has its own locks, already. Each _queue has its own locks, already.
Other items are protected by mlme_priv.lock. Other items are protected by mlme_priv.lock.
To avoid possible dead lock, any thread trying to modifiying mlme_priv To avoid possible dead lock, any thread trying to modify mlme_priv
SHALL not lock up more than one locks at a time! SHALL not lock up more than one lock at a time!
*/ */
#define traffic_threshold 10 #define traffic_threshold 10
...@@ -132,7 +132,7 @@ static inline sint get_fwstate(struct mlme_priv *pmlmepriv) ...@@ -132,7 +132,7 @@ static inline sint get_fwstate(struct mlme_priv *pmlmepriv)
* therefore set it to be the critical section... * therefore set it to be the critical section...
* *
* ### NOTE:#### (!!!!) * ### NOTE:#### (!!!!)
* TAKE CARE THAT BEFORE CALLING THIS FUNC, LOCK pmlmepriv->lock * TAKE CARE BEFORE CALLING THIS FUNC, LOCK pmlmepriv->lock
*/ */
static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state) static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state)
{ {
......
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
/*RxIQ DC offset, Rx digital filter, DC notch filter */ /*RxIQ DC offset, Rx digital filter, DC notch filter */
#define rOFDM0_XARxAFE 0xc10 #define rOFDM0_XARxAFE 0xc10
#define rOFDM0_XARxIQImbalance 0xc14 /* RxIQ imblance matrix */ #define rOFDM0_XARxIQImbalance 0xc14 /* RxIQ imbalance matrix */
#define rOFDM0_XBRxAFE 0xc18 #define rOFDM0_XBRxAFE 0xc18
#define rOFDM0_XBRxIQImbalance 0xc1c #define rOFDM0_XBRxIQImbalance 0xc1c
#define rOFDM0_XCRxAFE 0xc20 #define rOFDM0_XCRxAFE 0xc20
...@@ -603,7 +603,7 @@ ...@@ -603,7 +603,7 @@
#define bCCKRxIG 0x7f00 #define bCCKRxIG 0x7f00
#define bCCKLNAPolarity 0x800000 #define bCCKLNAPolarity 0x800000
#define bCCKRx1stGain 0x7f0000 #define bCCKRx1stGain 0x7f0000
#define bCCKRFExtend 0x20000000 /* CCK Rx Iinital gain polarity */ #define bCCKRFExtend 0x20000000 /* CCK Rx inital gain polarity */
#define bCCKRxAGCSatLevel 0x1f000000 #define bCCKRxAGCSatLevel 0x1f000000
#define bCCKRxAGCSatCount 0xe0 #define bCCKRxAGCSatCount 0xe0
#define bCCKRxRFSettle 0x1f /* AGCsamp_dly */ #define bCCKRxRFSettle 0x1f /* AGCsamp_dly */
......
...@@ -72,7 +72,7 @@ sint _r8712_init_xmit_priv(struct xmit_priv *pxmitpriv, ...@@ -72,7 +72,7 @@ sint _r8712_init_xmit_priv(struct xmit_priv *pxmitpriv,
memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv)); memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv));
spin_lock_init(&pxmitpriv->lock); spin_lock_init(&pxmitpriv->lock);
/* /*
Please insert all the queue initializaiton using _init_queue below Please insert all the queue initialization using _init_queue below
*/ */
pxmitpriv->adapter = padapter; pxmitpriv->adapter = padapter;
_init_queue(&pxmitpriv->be_pending); _init_queue(&pxmitpriv->be_pending);
......
...@@ -119,7 +119,7 @@ struct pkt_attrib { ...@@ -119,7 +119,7 @@ struct pkt_attrib {
u8 priority; u8 priority;
u8 encrypt; /* when 0 indicate no encrypt. when non-zero, u8 encrypt; /* when 0 indicate no encrypt. when non-zero,
* indicate the encrypt algorith*/ * indicate the encrypt algorithm*/
u8 iv_len; u8 iv_len;
u8 icv_len; u8 icv_len;
unsigned char iv[8]; unsigned char iv[8];
......
...@@ -141,7 +141,7 @@ u8 r8712_usb_hal_bus_init(struct _adapter *padapter) ...@@ -141,7 +141,7 @@ u8 r8712_usb_hal_bus_init(struct _adapter *padapter)
/* Enable AFE PLL Macro Block */ /* Enable AFE PLL Macro Block */
val8 = r8712_read8(padapter, AFE_PLL_CTRL); val8 = r8712_read8(padapter, AFE_PLL_CTRL);
r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11)); r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11));
/* Attatch AFE PLL to MACTOP/BB/PCIe Digital */ /* Attach AFE PLL to MACTOP/BB/PCIe Digital */
val8 = r8712_read8(padapter, SYS_ISO_CTRL); val8 = r8712_read8(padapter, SYS_ISO_CTRL);
r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE)); r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE));
/* Switch to 40M clock */ /* Switch to 40M clock */
...@@ -234,7 +234,7 @@ u8 r8712_usb_hal_bus_init(struct _adapter *padapter) ...@@ -234,7 +234,7 @@ u8 r8712_usb_hal_bus_init(struct _adapter *padapter)
udelay(500); udelay(500);
r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11)); r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11));
udelay(500); udelay(500);
/* Attatch AFE PLL to MACTOP/BB/PCIe Digital */ /* Attach AFE PLL to MACTOP/BB/PCIe Digital */
val8 = r8712_read8(padapter, SYS_ISO_CTRL); val8 = r8712_read8(padapter, SYS_ISO_CTRL);
r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE)); r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE));
/* Switch to 40M clock */ /* Switch to 40M clock */
......
...@@ -644,7 +644,7 @@ static void r871xu_dev_remove(struct usb_interface *pusb_intf) ...@@ -644,7 +644,7 @@ static void r871xu_dev_remove(struct usb_interface *pusb_intf)
/* decrease the reference count of the usb device structure /* decrease the reference count of the usb device structure
* when disconnect */ * when disconnect */
usb_put_dev(udev); usb_put_dev(udev);
/* If we didn't unplug usb dongle and remove/insert modlue, driver /* If we didn't unplug usb dongle and remove/insert module, driver
* fails on sitesurvey for the first time when device is up. * fails on sitesurvey for the first time when device is up.
* Reset usb port for sitesurvey fail issue. */ * Reset usb port for sitesurvey fail issue. */
if (udev->state != USB_STATE_NOTATTACHED) if (udev->state != USB_STATE_NOTATTACHED)
......
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