for (i = 0; i < wpa_len; i++) {
                        n += scnprintf(buf + n, MAX_WPA_IE_LEN - n,
                                                "%02x", wpa_ie[i]);
-                       if (n == MAX_WPA_IE_LEN-1)
+                       if (n == MAX_WPA_IE_LEN - 1)
                                break;
                }
                memset(iwe, 0, sizeof(*iwe));
                for (i = 0; i < rsn_len; i++) {
                        n += scnprintf(buf + n, MAX_WPA_IE_LEN - n,
                                                "%02x", rsn_ie[i]);
-                       if (n == MAX_WPA_IE_LEN-1)
+                       if (n == MAX_WPA_IE_LEN - 1)
                                break;
                }
                memset(iwe, 0, sizeof(*iwe));
 
        union pn48 Grprxpn;             /* PN48 used for Grp Key recv. */
        u8 wps_hw_pbc_pressed;/*for hw pbc pressed*/
        u8 wps_phase;/*for wps*/
-       u8 wps_ie[MAX_WPA_IE_LEN<<2];
+       u8 wps_ie[MAX_WPA_IE_LEN << 2];
        int wps_ie_len;
        u8      binstallGrpkey;
        u8      busetkipkey;
        txpn._byte_.TSC5 = iv[7];\
 } while (0)
 
-#define ROL32(A, n) (((A) << (n)) | (((A)>>(32-(n)))  & ((1UL << (n)) - 1)))
+#define ROL32(A, n) (((A) << (n)) | (((A) >> (32 - (n)))  & ((1UL << (n)) - 1)))
 #define ROR32(A, n) ROL32((A), 32 - (n))
 
 struct mic_data {
 
        pattrib_iv[1] = txpn._byte_.TSC1;\
        pattrib_iv[2] = txpn._byte_.TSC2;\
        pattrib_iv[3] = ((keyidx & 0x3) << 6);\
-       txpn.val = (txpn.val == 0xffffff) ? 0 : (txpn.val+1);\
+       txpn.val = (txpn.val == 0xffffff) ? 0 : (txpn.val + 1);\
 } while (0)
 
 /* Fixed the Big Endian bug when doing the Tx.
        pattrib_iv[0] = txpn._byte_.TSC1;\
        pattrib_iv[1] = (txpn._byte_.TSC1 | 0x20) & 0x7f;\
        pattrib_iv[2] = txpn._byte_.TSC0;\
-       pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
+       pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6);\
        pattrib_iv[4] = txpn._byte_.TSC2;\
        pattrib_iv[5] = txpn._byte_.TSC3;\
        pattrib_iv[6] = txpn._byte_.TSC4;\
        pattrib_iv[7] = txpn._byte_.TSC5;\
        txpn.val = txpn.val == 0xffffffffffffULL ? 0 : \
-       (txpn.val+1);\
+       (txpn.val + 1);\
 } while (0)
 
 #define AES_IV(pattrib_iv, txpn, keyidx)\
        pattrib_iv[0] = txpn._byte_.TSC0;\
        pattrib_iv[1] = txpn._byte_.TSC1;\
        pattrib_iv[2] = 0;\
-       pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
+       pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6);\
        pattrib_iv[4] = txpn._byte_.TSC2;\
        pattrib_iv[5] = txpn._byte_.TSC3;\
        pattrib_iv[6] = txpn._byte_.TSC4;\
        pattrib_iv[7] = txpn._byte_.TSC5;\
        txpn.val = txpn.val == 0xffffffffffffULL ? 0 : \
-       (txpn.val+1);\
+       (txpn.val + 1);\
 } while (0)
 
 struct hw_xmit {
 
        WIFI_MGT_TYPE  =        (0),
        WIFI_CTRL_TYPE =        (BIT(2)),
        WIFI_DATA_TYPE =        (BIT(3)),
-       WIFI_QOS_DATA_TYPE      = (BIT(7)|BIT(3)),      /*!< QoS Data */
+       WIFI_QOS_DATA_TYPE      = (BIT(7) | BIT(3)),    /*!< QoS Data */
 };
 
 enum WIFI_FRAME_SUBTYPE {