drivers: staging: rtl8723au: Fix 'code indent should use tabs where possible' errors
authorGreg Donald <gdonald@gmail.com>
Tue, 9 Sep 2014 01:50:23 +0000 (20:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:47:59 +0000 (14:47 -0700)
Fix checkpatch.pl 'code indent should use tabs where possible' errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_cmd.c
drivers/staging/rtl8723au/core/rtw_led.c
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/core/rtw_recv.c
drivers/staging/rtl8723au/core/rtw_security.c
drivers/staging/rtl8723au/core/rtw_wlan_util.c
drivers/staging/rtl8723au/core/rtw_xmit.c
drivers/staging/rtl8723au/include/ieee80211.h
drivers/staging/rtl8723au/include/rtw_cmd.h

index 9fd9b10408925c76d60982b905bed231601c5a4b..4eaa50297b95cc2e2b8c3209d166dfa4792f6285 100644 (file)
@@ -717,11 +717,11 @@ int rtw_setstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 unicast_key)
 
        if (unicast_key == true) {
                memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16);
-        } else {
+       } else {
                int idx = psecuritypriv->dot118021XGrpKeyid;
                memcpy(&psetstakey_para->key,
                       &psecuritypriv->dot118021XGrpKey[idx].skey, 16);
-        }
+       }
 
        /* jeff: set this because at least sw key is ready */
        padapter->securitypriv.busetkipkey = 1;
index e21a42c5418f3b288465ad6d7c8b359b0f41624c..989cda29a57ead66aac79300c4db5437c1b11d8f 100644 (file)
@@ -1842,7 +1842,7 @@ LedControl871x23a(struct rtw_adapter *padapter, enum led_ctl_mode LedAction) {
        if ((padapter->bSurpriseRemoved == true) ||
            (padapter->bDriverStopped == true) ||
            (padapter->hw_init_completed == false)) {
-             return;
+               return;
        }
 
        if (ledpriv->bRegUseLed == false)
index 099ef8ca6aa734e08500c8d9b9647b22655d2f8b..99fbb5c5ff23a3b13e3357d61ea0f50e9302e232 100644 (file)
@@ -159,7 +159,7 @@ rtw_find_network23a(struct rtw_queue *scanned_queue, u8 *addr)
                        break;
 
                plist = plist->next;
-        }
+       }
 
        if (plist == phead)
                pnetwork = NULL;
@@ -556,7 +556,7 @@ static int rtw_is_desired_network(struct rtw_adapter *adapter,
                /* for  correct flow of 8021X  to do.... */
                if (desired_encmode == Ndis802_11EncryptionDisabled &&
                    privacy != 0)
-                   bselected = false;
+                       bselected = false;
        }
 
        if (desired_encmode != Ndis802_11EncryptionDisabled && privacy == 0) {
@@ -637,7 +637,7 @@ void rtw_survey_event_cb23a(struct rtw_adapter *adapter, const u8 *pbuf)
 
        /*  lock pmlmepriv->lock when you accessing network_q */
        if (!check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) {
-               if (pnetwork->Ssid.ssid[0] == 0)
+               if (pnetwork->Ssid.ssid[0] == 0)
                        pnetwork->Ssid.ssid_len = 0;
 
                rtw_add_network(adapter, pnetwork);
@@ -743,7 +743,7 @@ static void free_scanqueue(struct mlme_priv *pmlmepriv)
                pnetwork = container_of(plist, struct wlan_network, list);
                pnetwork->fixed = false;
                _rtw_free_network23a(pmlmepriv, pnetwork);
-        }
+       }
 
        spin_unlock_bh(&scan_queue->lock);
 }
@@ -855,7 +855,7 @@ void rtw_indicate_disconnect23a(struct rtw_adapter *padapter)
 
        _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING|WIFI_UNDER_WPS);
 
-        /* DBG_8723A("clear wps when %s\n", __func__); */
+       /* DBG_8723A("clear wps when %s\n", __func__); */
 
        if (padapter->mlmepriv.to_roaming > 0)
                _clr_fwstate_(pmlmepriv, _FW_LINKED);
@@ -1351,7 +1351,7 @@ void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
        DBG_8723A("%s(mac_id=%d)=" MAC_FMT "\n", __func__, mac_id,
                  MAC_ARG(pstadel->macaddr));
 
-        if (check_fwstate(pmlmepriv, WIFI_AP_STATE))
+       if (check_fwstate(pmlmepriv, WIFI_AP_STATE))
                return;
 
        mlmeext_sta_del_event_callback23a(adapter);
index 23621a833901059f040ef65f6c125d8856ed8980..fcba08770e0e777c0573f6fdf831c984d36c1fe3 100644 (file)
@@ -625,7 +625,7 @@ _mgt_dispatcher23a(struct rtw_adapter *padapter, struct mlme_handler *ptable,
                        return;
 
                ptable->func(padapter, precv_frame);
-        }
+       }
 }
 
 void mgt_dispatcher23a(struct rtw_adapter *padapter,
@@ -1949,7 +1949,7 @@ OnDisassoc23a(struct rtw_adapter *padapter, struct recv_frame *precv_frame)
 
        reason = le16_to_cpu(mgmt->u.disassoc.reason_code);
 
-        DBG_8723A("%s Reason code(%d)\n", __func__, reason);
+       DBG_8723A("%s Reason code(%d)\n", __func__, reason);
 
 #ifdef CONFIG_8723AU_AP_MODE
        if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) {
@@ -5564,7 +5564,7 @@ int join_cmd_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
        struct ieee80211_ht_operation *pht_info;
        u32 i;
        u8 *p;
-        /* u32 initialgain; */
+       /* u32  initialgain; */
        /* u32  acparm; */
 
        /* check already connecting to AP or not */
index 5138ea023b170ecc020a44e574c48e814963b702..5bc7734d9a7237fb2587ebb00177fe0661408262 100644 (file)
@@ -577,7 +577,7 @@ static struct recv_frame *portctrl(struct rtw_adapter *adapter,
                                 ("########portctrl:psta->ieee8021x_blocked =="
                                  "1\n"));
 
-                       if (ether_type == eapol_type) {
+                       if (ether_type == eapol_type) {
                                prtnframe = precv_frame;
                        } else {
                                /* free this frame */
@@ -1170,7 +1170,7 @@ static int validate_recv_ctrl_frame(struct rtw_adapter *padapter,
 
                                if (psta->sleepq_len>0)
                                        pxmitframe->attrib.mdata = 1;
-                                else
+                               else
                                        pxmitframe->attrib.mdata = 0;
 
                                pxmitframe->attrib.triggered = 1;
@@ -1891,7 +1891,7 @@ int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num)
 }
 
 static int enqueue_reorder_recvframe23a(struct recv_reorder_ctrl *preorder_ctrl,
-                                       struct recv_frame *prframe)
+                                       struct recv_frame *prframe)
 {
        struct rx_pkt_attrib *pattrib = &prframe->attrib;
        struct rtw_queue *ppending_recvframe_queue;
@@ -1975,7 +1975,7 @@ int recv_indicatepkts_in_order(struct rtw_adapter *padapter,
                }
 
                prframe = container_of(plist, struct recv_frame, list);
-               pattrib = &prframe->attrib;
+               pattrib = &prframe->attrib;
                preorder_ctrl->indicate_seq = pattrib->seq_num;
        }
 
@@ -2125,7 +2125,7 @@ int recv_indicatepkt_reorder(struct rtw_adapter *padapter,
 
 _err_exit:
 
-        spin_unlock_bh(&ppending_recvframe_queue->lock);
+       spin_unlock_bh(&ppending_recvframe_queue->lock);
        return _FAIL;
 }
 
index 0fea2e43866aee1498d7a777737ea9e380ca0f76..76371ae69377506812868d15bc673d39c97a9b74 100644 (file)
@@ -702,7 +702,7 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
                }
                else{
                        RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_tkip_encrypt23a: stainfo == NULL!!!\n"));
-                               DBG_8723A("%s, psta == NUL\n", __func__);
+                       DBG_8723A("%s, psta == NUL\n", __func__);
                        res = _FAIL;
                }
 
@@ -1071,12 +1071,8 @@ static void construct_mic_header1(u8 *mic_header1, int header_length, u8 *mpdu)
 /* Builds the last MIC header block from        */
 /* header fields.                               */
 /************************************************/
-static void construct_mic_header2(
-                       u8 *mic_header2,
-                       u8 *mpdu,
-                       int a4_exists,
-                       int qc_exists
-                     )
+static void construct_mic_header2(u8 *mic_header2, u8 *mpdu, int a4_exists,
+                                 int qc_exists)
 {
        int i;
 
index bc587b3e3b179ba4d2be4919656678499c029e8e..09c44a55d4a6c692224c06cdc0655fd077d96925 100644 (file)
@@ -352,7 +352,7 @@ static void set_bwmode(struct rtw_adapter *padapter, unsigned short bwmode,
 }
 
 void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,
-                       unsigned char channel_offset, unsigned short bwmode)
+                          unsigned char channel_offset, unsigned short bwmode)
 {
        u8 center_ch;
 
index d83af877ad6fc12d582ad74f9337b250c82819e6..7a8038156ceadbfce11877eabe95a6878982ff9b 100644 (file)
@@ -254,14 +254,14 @@ static void update_attrib_vcs_info(struct rtw_adapter *padapter, struct xmit_fra
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
 
-        if (pattrib->psta) {
+       if (pattrib->psta) {
                psta = pattrib->psta;
        } else {
                DBG_8723A("%s, call rtw_get_stainfo23a()\n", __func__);
                psta = rtw_get_stainfo23a(&padapter->stapriv, &pattrib->ra[0]);
        }
 
-        if (psta == NULL) {
+       if (psta == NULL) {
                DBG_8723A("%s, psta == NUL\n", __func__);
                return;
        }
index c1a334d2b88e2c0b898a0d0d24dd0e8bb84d6146..cb23cd0349b4ae9e13e23345193641535a19086e 100644 (file)
@@ -159,10 +159,10 @@ enum NETWORK_TYPE
 #define P80211_OUI_LEN 3
 
 struct ieee80211_snap_hdr {
-        u8    dsap;   /* always 0xAA */
-        u8    ssap;   /* always 0xAA */
-        u8    ctrl;   /* always 0x03 */
-        u8    oui[P80211_OUI_LEN];    /* organizational universal id */
+       u8    dsap;   /* always 0xAA */
+       u8    ssap;   /* always 0xAA */
+       u8    ctrl;   /* always 0x03 */
+       u8    oui[P80211_OUI_LEN];    /* organizational universal id */
 } __attribute__ ((packed));
 
 
@@ -221,8 +221,8 @@ struct ieee80211_snap_hdr {
 #define IEEE80211_CCK_BASIC_RATES_MASK (IEEE80211_CCK_RATE_1MB_MASK | \
        IEEE80211_CCK_RATE_2MB_MASK)
 #define IEEE80211_CCK_DEFAULT_RATES_MASK       (IEEE80211_CCK_BASIC_RATES_MASK | \
-        IEEE80211_CCK_RATE_5MB_MASK | \
-        IEEE80211_CCK_RATE_11MB_MASK)
+       IEEE80211_CCK_RATE_5MB_MASK | \
+       IEEE80211_CCK_RATE_11MB_MASK)
 
 #define IEEE80211_OFDM_RATES_MASK              0x00000FF0
 #define IEEE80211_OFDM_BASIC_RATES_MASK        (IEEE80211_OFDM_RATE_6MB_MASK | \
@@ -235,7 +235,7 @@ struct ieee80211_snap_hdr {
        IEEE80211_OFDM_RATE_48MB_MASK | \
        IEEE80211_OFDM_RATE_54MB_MASK)
 #define IEEE80211_DEFAULT_RATES_MASK (IEEE80211_OFDM_DEFAULT_RATES_MASK | \
-                                IEEE80211_CCK_DEFAULT_RATES_MASK)
+                                     IEEE80211_CCK_DEFAULT_RATES_MASK)
 
 #define IEEE80211_NUM_OFDM_RATES           8
 #define IEEE80211_NUM_CCK_RATES                    4
index c49237b04a33185e822d008e37ba35e44563755e..9b3425e31d83146cf728b1f85c927f985a87bdd5 100644 (file)
@@ -547,14 +547,14 @@ struct setratable_parm {
 };
 
 struct getratable_parm {
-                uint rsvd;
+       uint rsvd;
 };
 
 struct getratable_rsp {
-        u8 ss_ForceUp[NumRates];
-        u8 ss_ULevel[NumRates];
-        u8 ss_DLevel[NumRates];
-        u8 count_judge[NumRates];
+       u8 ss_ForceUp[NumRates];
+       u8 ss_ULevel[NumRates];
+       u8 ss_DLevel[NumRates];
+       u8 count_judge[NumRates];
 };
 
 /* to get TX,RX retry count */