/**
  * 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  dvobj_priv dvobjpriv;
 
        IEEE80211_ASSOCIATING_RETRY,
        /* the association procedure is sending AUTH request*/
        IEEE80211_ASSOCIATING_AUTHENTICATING,
-       /* the association procedure has successfully authentcated
+       /* the association procedure has successfully authenticated
         * and is sending association request
         */
        IEEE80211_ASSOCIATING_AUTHENTICATED,
 
  ******************************************************************************/
 /*
  * 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.
  *
  *             Global definitions for the Ethernet IEEE 802.3 interface.
 
 static int hci = RTL8712_USB;
 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.*/
 static int video_mode = 1;   /* enable video mode*/
 
 
 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);
        if (padapter->cmdThread)
                _down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);
 
                 * After trigger PBC, the variable will be set to false */
                DBG_8712("CheckPbcGPIO - PBC is pressed !!!!\n");
                /* 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)
                        return;
                kill_pid(find_vpid(padapter->pid), SIGUSR1, 1);
                        *pcmdbuf = cpu_to_le32((cmdsz & 0x0000ffff) |
                                               (pcmd->cmdcode << 16) |
                                               (pcmdpriv->cmd_seq << 24));
-                       pcmdbuf += 2 ; /* 8 bytes aligment */
+                       pcmdbuf += 2 ; /* 8 bytes alignment */
                        memcpy((u8 *)pcmdbuf, pcmd->parmbuf, pcmd->cmdsz);
                        while (check_cmd_fifo(padapter, wr_sz) == _FAIL) {
                                if ((padapter->bDriverStopped == true) ||
        pevt_priv->event_seq++; /* update evt_seq */
        if (pevt_priv->event_seq > 127)
                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) {
                event_callback = wlanevents[evt_code].event_callback;
                if (event_callback)
 
        GEN_CMD_CODE(_GetCurDataRate) ,
 
        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
                                        * received frame with ReTry bit set in
 
                } else { /* write header fail */
                        bResult = false;
                        if (0xFF == efuse_data)
-                               return bResult; /* not thing damaged. */
+                               return bResult; /* nothing damaged. */
                        /* call rescue procedure */
                        if (fix_header(padapter, efuse_data, efuse_addr) ==
                            false)
 
 #define                GPIOSEL_BT      2       /* BT_coex*/
 #define                GPIOSEL_WLANDBG 3       /* WLANDBG*/
 #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_MASK      0xF7
 #define                HAL_8192S_HW_GPIO_WPS_BIT       BIT(4)
 
        unsigned char rfintfs;    /* 0:SWSI, 1:HWSI, 2:HWPI*/
        unsigned char def_nettype;
        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 ----*/
        unsigned char lbk_mode; /*0x00: normal, 0x03: MACLBK, 0x01: PHYLBK*/
        unsigned char mp_mode; /* 1: for MP use, 0: for normal driver */
        unsigned char rsvd053;
 };
 
-struct fw_hdr {/*8-byte alinment required*/
+struct fw_hdr {/*8-byte alignment required*/
        unsigned short  signature;
        unsigned short  version;        /*0x8000 ~ 0x8FFF for FPGA version,
                                         *0x0000 ~ 0x7FFF for ASIC version,*/
 
                             * the # of times to blink is depend on time
                             * for scanning. */
        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 */
        LED_BLINK_WPS = 9,      /* LED is blinkg during WPS communication */
        LED_TXRX_BLINK = 10,
 {
        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. */
        if ((pLed->padapter->bSurpriseRemoved == true) ||
            (pLed->padapter->bDriverStopped == true))
 
 /*     Description:
  *             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)
 {
 
                cmd_seq = (u8)((le32_to_cpu(voffset) >> 24) & 0x7f);
                eid = (u8)((le32_to_cpu(voffset) >> 16) & 0xff);
                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));
 
 }
                }
        }
        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))
                goto _err_exit;
        /*s3. Insert all packet into Reorder Queue to maintain its ordering.*/
 
  * Result:
  * 0x00: success
  * 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
  * 0x04: reserved.
  */
 
        /* Add frequency/channel */
        iwe.cmd = SIOCGIWFREQ;
        {
-               /*  check legel index */
+               /*  check legal index */
                u8 dsconfig = pnetwork->network.Configuration.DSConfig;
                if (dsconfig >= 1 && dsconfig <= sizeof(
                    ieee80211_wlan_frequencies) / sizeof(long))
 
 /*
        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
-        all the PMKID information. If cmd is IW_PMKSA_ADD, it means the
-         wpa_supplicant wants to add a PMKID/BSSID to driver.
+       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
+       wpa_supplicant wants to add a PMKID/BSSID to driver.
        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)
                return -EINVAL;
        range->max_qual.noise = 100;
        range->max_qual.updated = 7; /* Updated all three */
        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.noise = 0;
        range->avg_qual.updated = 7; /* Updated all three */
  * MAC# of a preferred Access Point.
  * 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,
 
                    (*pold_state == Ndis802_11Infrastructure) ||
                    (*pold_state == Ndis802_11IBSS)) {
                        /* 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 */
                        r8712_ind_disconnect(padapter);
                }
 
 
 /*
        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...
 */
 static struct wlan_network *_r8712_find_network(struct  __queue *scanned_queue,
 /*
        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...
 */
 static struct wlan_network *r8712_find_network(struct  __queue *scanned_queue,
  *      and the WiFi client will drop the data with seq number 0.
  *     So, the 8712 firmware has to inform driver with receiving 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)
 {
                phtpriv->rx_ampdu_maxlen = max_ampdu_sz;
        }
        /* 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
         * todo: check if AP can send A-MPDU packets
         */
 
 like ISR/Call-Back functions, the OID handlers, and even timer functions.
 Each _queue has its own locks, already.
 Other items are protected by mlme_priv.lock.
-To avoid possible dead lock, any thread trying to modifiying mlme_priv
-SHALL not lock up more than one locks at a time!
+To avoid possible dead lock, any thread trying to modify mlme_priv
+SHALL not lock up more than one lock at a time!
 */
 
 #define traffic_threshold      10
  * therefore set it to be the critical section...
  *
  * ### 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)
 {
 
 
 /*RxIQ DC offset, Rx digital filter, DC notch filter */
 #define        rOFDM0_XARxAFE                  0xc10
-#define        rOFDM0_XARxIQImbalance          0xc14  /* RxIQ imblance matrix */
+#define        rOFDM0_XARxIQImbalance          0xc14  /* RxIQ imbalance matrix */
 #define        rOFDM0_XBRxAFE                  0xc18
 #define        rOFDM0_XBRxIQImbalance          0xc1c
 #define        rOFDM0_XCRxAFE                  0xc20
 #define        bCCKRxIG                0x7f00
 #define        bCCKLNAPolarity         0x800000
 #define        bCCKRx1stGain           0x7f0000
-#define        bCCKRFExtend            0x20000000 /* CCK Rx Iinital gain polarity */
+#define        bCCKRFExtend            0x20000000 /* CCK Rx inital gain polarity */
 #define        bCCKRxAGCSatLevel       0x1f000000
 #define        bCCKRxAGCSatCount       0xe0
 #define        bCCKRxRFSettle          0x1f       /* AGCsamp_dly */
 
        memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv));
        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;
        _init_queue(&pxmitpriv->be_pending);
 
 
        u8      priority;
        u8      encrypt;        /* when 0 indicate no encrypt. when non-zero,
-                                * indicate the encrypt algorith*/
+                                * indicate the encrypt algorithm*/
        u8      iv_len;
        u8      icv_len;
        unsigned char iv[8];
 
                /* Enable AFE PLL Macro Block */
                val8 = r8712_read8(padapter, AFE_PLL_CTRL);
                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);
                r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE));
                /* Switch to 40M clock */
                udelay(500);
                r8712_write8(padapter, AFE_PLL_CTRL, (val8 | 0x11));
                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);
                r8712_write8(padapter, SYS_ISO_CTRL, (val8 & 0xEE));
                /* Switch to 40M clock */
 
        /* decrease the reference count of the usb device structure
         * when disconnect */
        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.
         * Reset usb port for sitesurvey fail issue. */
        if (udev->state != USB_STATE_NOTATTACHED)