···146146/**147147 * struct _adapter - the main adapter structure for this device.148148 *149149- * bup: True indicates that the interface is Up.149149+ * bup: True indicates that the interface is up.150150 */151151struct _adapter {152152 struct dvobj_priv dvobjpriv;
+1-1
drivers/staging/rtl8712/ieee80211.h
···705705 IEEE80211_ASSOCIATING_RETRY,706706 /* the association procedure is sending AUTH request*/707707 IEEE80211_ASSOCIATING_AUTHENTICATING,708708- /* the association procedure has successfully authentcated708708+ /* the association procedure has successfully authenticated709709 * and is sending association request710710 */711711 IEEE80211_ASSOCIATING_AUTHENTICATED,
+1-1
drivers/staging/rtl8712/if_ether.h
···2525 ******************************************************************************/2626/*2727 * INET An implementation of the TCP/IP protocol suite for the LINUX2828- * operating system. INET is implemented using the BSD Socket2828+ * operating system. INET is implemented using the BSD Socket2929 * interface as the means of communication with the user level.3030 *3131 * Global definitions for the Ethernet IEEE 802.3 interface.
+2-2
drivers/staging/rtl8712/os_intfs.c
···5252static int hci = RTL8712_USB;5353static int ampdu_enable = 1;/*for enable tx_ampdu*/54545555-/* The video_mode variable is for vedio mode.*/5555+/* The video_mode variable is for video mode.*/5656/* It may be specify when inserting module with video_mode=1 parameter.*/5757static int video_mode = 1; /* enable video mode*/5858···248248249249void r8712_stop_drv_threads(struct _adapter *padapter)250250{251251- /*Below is to termindate r8712_cmd_thread & event_thread...*/251251+ /*Below is to terminate r8712_cmd_thread & event_thread...*/252252 up(&padapter->cmdpriv.cmd_queue_sema);253253 if (padapter->cmdThread)254254 _down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);
+3-3
drivers/staging/rtl8712/rtl8712_cmd.c
···6969 * After trigger PBC, the variable will be set to false */7070 DBG_8712("CheckPbcGPIO - PBC is pressed !!!!\n");7171 /* 0 is the default value and it means the application monitors7272- * the HW PBC doesn't privde its pid to driver. */7272+ * the HW PBC doesn't provide its pid to driver. */7373 if (padapter->pid == 0)7474 return;7575 kill_pid(find_vpid(padapter->pid), SIGUSR1, 1);···382382 *pcmdbuf = cpu_to_le32((cmdsz & 0x0000ffff) |383383 (pcmd->cmdcode << 16) |384384 (pcmdpriv->cmd_seq << 24));385385- pcmdbuf += 2 ; /* 8 bytes aligment */385385+ pcmdbuf += 2 ; /* 8 bytes alignment */386386 memcpy((u8 *)pcmdbuf, pcmd->parmbuf, pcmd->cmdsz);387387 while (check_cmd_fifo(padapter, wr_sz) == _FAIL) {388388 if ((padapter->bDriverStopped == true) ||···471471 pevt_priv->event_seq++; /* update evt_seq */472472 if (pevt_priv->event_seq > 127)473473 pevt_priv->event_seq = 0;474474- peventbuf = peventbuf + 2; /* move to event content, 8 bytes aligment */474474+ peventbuf = peventbuf + 2; /* move to event content, 8 bytes alignment */475475 if (peventbuf) {476476 event_callback = wlanevents[evt_code].event_callback;477477 if (event_callback)
+1-1
drivers/staging/rtl8712/rtl8712_cmd.h
···121121 GEN_CMD_CODE(_GetCurDataRate) ,122122123123 GEN_CMD_CODE(_GetTxRetrycnt), /* to record times that Tx retry to124124- * transmmit packet after association124124+ * transmit packet after association125125 */126126 GEN_CMD_CODE(_GetRxRetrycnt), /* to record total number of the127127 * received frame with ReTry bit set in
···8383 unsigned char rfintfs; /* 0:SWSI, 1:HWSI, 2:HWPI*/8484 unsigned char def_nettype;8585 unsigned char turboMode;8686- unsigned char lowPowerMode;/* 0: noral mode, 1: low power mode*/8686+ unsigned char lowPowerMode;/* 0: normal mode, 1: low power mode*/8787 /*--- long word 2 ----*/8888 unsigned char lbk_mode; /*0x00: normal, 0x03: MACLBK, 0x01: PHYLBK*/8989 unsigned char mp_mode; /* 1: for MP use, 0: for normal driver */···123123 unsigned char rsvd053;124124};125125126126-struct fw_hdr {/*8-byte alinment required*/126126+struct fw_hdr {/*8-byte alignment required*/127127 unsigned short signature;128128 unsigned short version; /*0x8000 ~ 0x8FFF for FPGA version,129129 *0x0000 ~ 0x7FFF for ASIC version,*/
+3-3
drivers/staging/rtl8712/rtl8712_led.c
···6060 * the # of times to blink is depend on time6161 * for scanning. */6262 LED_NO_LINK_BLINK = 7, /* LED is blinking during no link state. */6363- LED_BLINK_StartToBlink = 8,/* Customzied for Sercomm Printer6363+ LED_BLINK_StartToBlink = 8,/* Customized for Sercomm Printer6464 * Server case */6565 LED_BLINK_WPS = 9, /* LED is blinkg during WPS communication */6666 LED_TXRX_BLINK = 10,···826826{827827 struct LED_871x *pLed = (struct LED_871x *)data;828828829829- /* This fixed the crash problem on Fedora 12 when trying to do thei829829+ /* This fixed the crash problem on Fedora 12 when trying to do the830830 * insmod;ifconfig up;rmmod commands. */831831 if ((pLed->padapter->bSurpriseRemoved == true) ||832832 (pLed->padapter->bDriverStopped == true))···836836837837/* Description:838838 * Callback function of LED BlinkWorkItem.839839- * We dispatch acture LED blink action according to LedStrategy.839839+ * We dispatch actual LED blink action according to LedStrategy.840840 */841841static void BlinkWorkItemCallback(struct work_struct *work)842842{
+2-2
drivers/staging/rtl8712/rtl8712_recv.c
···459459 cmd_seq = (u8)((le32_to_cpu(voffset) >> 24) & 0x7f);460460 eid = (u8)((le32_to_cpu(voffset) >> 16) & 0xff);461461 r8712_event_handle(padapter, (uint *)poffset);462462- poffset += (cmd_len + 8);/*8 bytes aligment*/462462+ poffset += (cmd_len + 8);/*8 bytes alignment*/463463 } while (le32_to_cpu(voffset) & BIT(31));464464465465}···603603 }604604 }605605 spin_lock_irqsave(&ppending_recvframe_queue->lock, irql);606606- /*s2. check if winstart_b(indicate_seq) needs to been updated*/606606+ /*s2. check if winstart_b(indicate_seq) needs to be updated*/607607 if (!check_indicate_seq(preorder_ctrl, pattrib->seq_num))608608 goto _err_exit;609609 /*s3. Insert all packet into Reorder Queue to maintain its ordering.*/
+1-1
drivers/staging/rtl8712/rtl871x_cmd.h
···720720 * Result:721721 * 0x00: success722722 * 0x01: success, and check Response.723723- * 0x02: cmd ignored due to duplicated sequcne number723723+ * 0x02: cmd ignored due to duplicated sequence number724724 * 0x03: cmd dropped due to invalid cmd code725725 * 0x04: reserved.726726 */
+7-7
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
···241241 /* Add frequency/channel */242242 iwe.cmd = SIOCGIWFREQ;243243 {244244- /* check legel index */244244+ /* check legal index */245245 u8 dsconfig = pnetwork->network.Configuration.DSConfig;246246 if (dsconfig >= 1 && dsconfig <= sizeof(247247 ieee80211_wlan_frequencies) / sizeof(long))···809809810810/*811811 There are the BSSID information in the bssid.sa_data array.812812- If cmd is IW_PMKSA_FLUSH, it means the wpa_suppplicant wants to clear813813- all the PMKID information. If cmd is IW_PMKSA_ADD, it means the814814- wpa_supplicant wants to add a PMKID/BSSID to driver.812812+ If cmd is IW_PMKSA_FLUSH, it means the wpa_supplicant wants to clear813813+ all the PMKID information. If cmd is IW_PMKSA_ADD, it means the814814+ wpa_supplicant wants to add a PMKID/BSSID to driver.815815 If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to816816- remove a PMKID/BSSID from driver.816816+ remove a PMKID/BSSID from driver.817817*/818818 if (pPMK == NULL)819819 return -EINVAL;···923923 range->max_qual.noise = 100;924924 range->max_qual.updated = 7; /* Updated all three */925925 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */926926- /* TODO: Find real 'good' to 'bad' threshol value for RSSI */926926+ /* TODO: Find real 'good' to 'bad' threshold value for RSSI */927927 range->avg_qual.level = 20 + -98;928928 range->avg_qual.noise = 0;929929 range->avg_qual.updated = 7; /* Updated all three */···10701070 * MAC# of a preferred Access Point.10711071 * Currently, the request comes via Wireless Extensions' SIOCSIWAP ioctl.10721072 *10731073- * For this operation to succeed, there is no need for the interface to be Up.10731073+ * For this operation to succeed, there is no need for the interface to be up.10741074 *10751075 */10761076static int r8711_wx_set_wap(struct net_device *dev,
+1-1
drivers/staging/rtl8712/rtl871x_ioctl_set.c
···264264 (*pold_state == Ndis802_11Infrastructure) ||265265 (*pold_state == Ndis802_11IBSS)) {266266 /* will clr Linked_state before this function,267267- * we must have chked whether issue dis-assoc_cmd or267267+ * we must have checked whether issue dis-assoc_cmd or268268 * not */269269 r8712_ind_disconnect(padapter);270270 }
+4-4
drivers/staging/rtl8712/rtl871x_mlme.c
···137137138138/*139139 return the wlan_network with the matching addr140140- Shall be calle under atomic context...140140+ Shall be called under atomic context...141141 to avoid possible racing condition...142142*/143143static struct wlan_network *_r8712_find_network(struct __queue *scanned_queue,···255255/*256256 return the wlan_network with the matching addr257257258258- Shall be calle under atomic context...258258+ Shall be called under atomic context...259259 to avoid possible racing condition...260260*/261261static struct wlan_network *r8712_find_network(struct __queue *scanned_queue,···10371037 * and the WiFi client will drop the data with seq number 0.10381038 * So, the 8712 firmware has to inform driver with receiving the10391039 * ADDBA-Req frame so that the driver can reset the10401040- * sequence value of Rx reorder contorl.10401040+ * sequence value of Rx reorder control.10411041 */10421042void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf)10431043{···17751775 phtpriv->rx_ampdu_maxlen = max_ampdu_sz;17761776 }17771777 /* for A-MPDU Rx reordering buffer control for bmc_sta & sta_info17781778- * if A-MPDU Rx is enabled, reseting rx_ordering_ctrl17781778+ * if A-MPDU Rx is enabled, resetting rx_ordering_ctrl17791779 * wstart_b(indicate_seq) to default value=0xffff17801780 * todo: check if AP can send A-MPDU packets17811781 */
+3-3
drivers/staging/rtl8712/rtl871x_mlme.h
···6969like ISR/Call-Back functions, the OID handlers, and even timer functions.7070Each _queue has its own locks, already.7171Other items are protected by mlme_priv.lock.7272-To avoid possible dead lock, any thread trying to modifiying mlme_priv7373-SHALL not lock up more than one locks at a time!7272+To avoid possible dead lock, any thread trying to modify mlme_priv7373+SHALL not lock up more than one lock at a time!7474*/75757676#define traffic_threshold 10···132132 * therefore set it to be the critical section...133133 *134134 * ### NOTE:#### (!!!!)135135- * TAKE CARE THAT BEFORE CALLING THIS FUNC, LOCK pmlmepriv->lock135135+ * TAKE CARE BEFORE CALLING THIS FUNC, LOCK pmlmepriv->lock136136 */137137static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state)138138{
···7272 memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv));7373 spin_lock_init(&pxmitpriv->lock);7474 /*7575- Please insert all the queue initializaiton using _init_queue below7575+ Please insert all the queue initialization using _init_queue below7676 */7777 pxmitpriv->adapter = padapter;7878 _init_queue(&pxmitpriv->be_pending);
+1-1
drivers/staging/rtl8712/rtl871x_xmit.h
···119119120120 u8 priority;121121 u8 encrypt; /* when 0 indicate no encrypt. when non-zero,122122- * indicate the encrypt algorith*/122122+ * indicate the encrypt algorithm*/123123 u8 iv_len;124124 u8 icv_len;125125 unsigned char iv[8];
+2-2
drivers/staging/rtl8712/usb_halinit.c
···141141 /* Enable AFE PLL Macro Block */142142 val8 = r8712_read8(padapter, AFE_PLL_CTRL);143143 r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11));144144- /* Attatch AFE PLL to MACTOP/BB/PCIe Digital */144144+ /* Attach AFE PLL to MACTOP/BB/PCIe Digital */145145 val8 = r8712_read8(padapter, SYS_ISO_CTRL);146146 r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE));147147 /* Switch to 40M clock */···234234 udelay(500);235235 r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11));236236 udelay(500);237237- /* Attatch AFE PLL to MACTOP/BB/PCIe Digital */237237+ /* Attach AFE PLL to MACTOP/BB/PCIe Digital */238238 val8 = r8712_read8(padapter, SYS_ISO_CTRL);239239 r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE));240240 /* Switch to 40M clock */
+1-1
drivers/staging/rtl8712/usb_intf.c
···644644 /* decrease the reference count of the usb device structure645645 * when disconnect */646646 usb_put_dev(udev);647647- /* If we didn't unplug usb dongle and remove/insert modlue, driver647647+ /* If we didn't unplug usb dongle and remove/insert module, driver648648 * fails on sitesurvey for the first time when device is up.649649 * Reset usb port for sitesurvey fail issue. */650650 if (udev->state != USB_STATE_NOTATTACHED)