}
        }
 
-       if (index>0) {
+       if (index > 0) {
                // Set rx_timeout_indicate_seq to 0xffff to indicate no pending packets in buffer now.
                pRxTs->rx_timeout_indicate_seq = 0xffff;
 
        INIT_LIST_HEAD(&ieee->RxReorder_Unused_List);
 //#ifdef TO_DO_LIST
        for (count = 0; count < REORDER_ENTRY_NUM; count++) {
-               list_add_tail(&pRxReorderEntry->List,&ieee->RxReorder_Unused_List);
+               list_add_tail(&pRxReorderEntry->List, &ieee->RxReorder_Unused_List);
                if (count == (REORDER_ENTRY_NUM-1))
                        break;
                pRxReorderEntry = &ieee->RxReorderEntry[count+1];
        del_timer_sync(&pTsCommonInfo->setup_timer);
        del_timer_sync(&pTsCommonInfo->inact_timer);
 
-       if (InactTime!=0)
+       if (InactTime != 0)
                mod_timer(&pTsCommonInfo->inact_timer,
                          jiffies + msecs_to_jiffies(InactTime));
 }
        if (ieee->iw_mode == IW_MODE_MASTER) { //ap mode
                if (TxRxSelect == TX_DIR) {
                        search_dir[DIR_DOWN] = true;
-                       search_dir[DIR_BI_DIR]= true;
+                       search_dir[DIR_BI_DIR] = true;
                } else {
                        search_dir[DIR_UP]      = true;
-                       search_dir[DIR_BI_DIR]= true;
+                       search_dir[DIR_BI_DIR] = true;
                }
        } else if (ieee->iw_mode == IW_MODE_ADHOC) {
-               if(TxRxSelect == TX_DIR)
+               if (TxRxSelect == TX_DIR)
                        search_dir[DIR_UP]      = true;
                else
                        search_dir[DIR_DOWN] = true;
        } else {
                if (TxRxSelect == TX_DIR) {
                        search_dir[DIR_UP]      = true;
-                       search_dir[DIR_BI_DIR]= true;
-                       search_dir[DIR_DIRECT]= true;
+                       search_dir[DIR_BI_DIR] = true;
+                       search_dir[DIR_DIRECT] = true;
                } else {
                        search_dir[DIR_DOWN] = true;
-                       search_dir[DIR_BI_DIR]= true;
-                       search_dir[DIR_DIRECT]= true;
+                       search_dir[DIR_BI_DIR] = true;
+                       search_dir[DIR_DIRECT] = true;
                }
        }
 
                        struct tspec_body       TSpec;
                        struct qos_tsinfo       *pTSInfo = &TSpec.ts_info;
                        struct list_head        *pUnusedList =
-                                                               (TxRxSelect == TX_DIR)?
-                                                               (&ieee->Tx_TS_Unused_List):
+                                                               (TxRxSelect == TX_DIR) ?
+                                                               (&ieee->Tx_TS_Unused_List) :
                                                                (&ieee->Rx_TS_Unused_List);
 
                        struct list_head        *pAddmitList =
-                                                               (TxRxSelect == TX_DIR)?
-                                                               (&ieee->Tx_TS_Admit_List):
+                                                               (TxRxSelect == TX_DIR) ?
+                                                               (&ieee->Tx_TS_Admit_List) :
                                                                (&ieee->Rx_TS_Admit_List);
 
-                       enum direction_value    Dir =           (ieee->iw_mode == IW_MODE_MASTER)?
-                                                               ((TxRxSelect==TX_DIR)?DIR_DOWN:DIR_UP):
-                                                               ((TxRxSelect==TX_DIR)?DIR_UP:DIR_DOWN);
+                       enum direction_value    Dir =           (ieee->iw_mode == IW_MODE_MASTER) ?
+                                                               ((TxRxSelect == TX_DIR)?DIR_DOWN:DIR_UP) :
+                                                               ((TxRxSelect == TX_DIR)?DIR_UP:DIR_DOWN);
                        IEEE80211_DEBUG(IEEE80211_DL_TS, "to add Ts\n");
-                       if(!list_empty(pUnusedList)) {
+                       if (!list_empty(pUnusedList)) {
                                (*ppTS) = list_entry(pUnusedList->next, struct ts_common_info, list);
                                list_del_init(&(*ppTS)->list);
                                if (TxRxSelect == TX_DIR) {
                                        spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
                                        return;
                                }
-                               for(i =0; i < prxb->nr_subframes; i++)
+                               for (i =  0; i < prxb->nr_subframes; i++)
                                        dev_kfree_skb(prxb->subframes[i]);
 
                                kfree(prxb);
                                prxb = NULL;
                        }
-                       list_add_tail(&pRxReorderEntry->List,&ieee->RxReorder_Unused_List);
+                       list_add_tail(&pRxReorderEntry->List, &ieee->RxReorder_Unused_List);
                        spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
                }