diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/wmm.c | 13 |
2 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 622b17f884f0..b7484efc9443 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -219,7 +219,6 @@ struct mwifiex_tid_tbl { | |||
219 | #define WMM_HIGHEST_PRIORITY 7 | 219 | #define WMM_HIGHEST_PRIORITY 7 |
220 | #define HIGH_PRIO_TID 7 | 220 | #define HIGH_PRIO_TID 7 |
221 | #define LOW_PRIO_TID 0 | 221 | #define LOW_PRIO_TID 0 |
222 | #define NO_PKT_PRIO_TID (-1) | ||
223 | 222 | ||
224 | struct mwifiex_wmm_desc { | 223 | struct mwifiex_wmm_desc { |
225 | struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID]; | 224 | struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID]; |
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c index c1d848882fe2..75c8e80bb62f 100644 --- a/drivers/net/wireless/mwifiex/wmm.c +++ b/drivers/net/wireless/mwifiex/wmm.c | |||
@@ -916,8 +916,12 @@ mwifiex_wmm_get_highest_priolist_ptr(struct mwifiex_adapter *adapter, | |||
916 | 916 | ||
917 | do { | 917 | do { |
918 | priv_tmp = bssprio_node->priv; | 918 | priv_tmp = bssprio_node->priv; |
919 | hqp = &priv_tmp->wmm.highest_queued_prio; | ||
920 | 919 | ||
920 | if (atomic_read(&priv_tmp->wmm.tx_pkts_queued) == 0) | ||
921 | goto skip_bss; | ||
922 | |||
923 | /* iterate over the WMM queues of the BSS */ | ||
924 | hqp = &priv_tmp->wmm.highest_queued_prio; | ||
921 | for (i = atomic_read(hqp); i >= LOW_PRIO_TID; --i) { | 925 | for (i = atomic_read(hqp); i >= LOW_PRIO_TID; --i) { |
922 | 926 | ||
923 | tid_ptr = &(priv_tmp)->wmm. | 927 | tid_ptr = &(priv_tmp)->wmm. |
@@ -976,12 +980,7 @@ mwifiex_wmm_get_highest_priolist_ptr(struct mwifiex_adapter *adapter, | |||
976 | } while (ptr != head); | 980 | } while (ptr != head); |
977 | } | 981 | } |
978 | 982 | ||
979 | /* No packet at any TID for this priv. Mark as such | 983 | skip_bss: |
980 | * to skip checking TIDs for this priv (until pkt is | ||
981 | * added). | ||
982 | */ | ||
983 | atomic_set(hqp, NO_PKT_PRIO_TID); | ||
984 | |||
985 | /* Get next bss priority node */ | 984 | /* Get next bss priority node */ |
986 | bssprio_node = list_first_entry(&bssprio_node->list, | 985 | bssprio_node = list_first_entry(&bssprio_node->list, |
987 | struct mwifiex_bss_prio_node, | 986 | struct mwifiex_bss_prio_node, |