Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369163
b: refs/heads/master
c: 333f6b2
h: refs/heads/master
i:
  369161: 2ac3e96
  369159: 09c42ed
v: v3
  • Loading branch information
Andreas Fenkart authored and John W. Linville committed Apr 8, 2013
1 parent 62f736d commit d496df1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d2344ec6043a2de8cfa9d8f27909a99ca967a08
refs/heads/master: 333f6b22c5b88a9d856703b440257f46efa714c8
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/mwifiex/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ struct mwifiex_tid_tbl {
#define WMM_HIGHEST_PRIORITY 7
#define HIGH_PRIO_TID 7
#define LOW_PRIO_TID 0
#define NO_PKT_PRIO_TID (-1)

struct mwifiex_wmm_desc {
struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID];
Expand Down
13 changes: 6 additions & 7 deletions trunk/drivers/net/wireless/mwifiex/wmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,12 @@ mwifiex_wmm_get_highest_priolist_ptr(struct mwifiex_adapter *adapter,

do {
priv_tmp = bssprio_node->priv;
hqp = &priv_tmp->wmm.highest_queued_prio;

if (atomic_read(&priv_tmp->wmm.tx_pkts_queued) == 0)
goto skip_bss;

/* iterate over the WMM queues of the BSS */
hqp = &priv_tmp->wmm.highest_queued_prio;
for (i = atomic_read(hqp); i >= LOW_PRIO_TID; --i) {

tid_ptr = &(priv_tmp)->wmm.
Expand Down Expand Up @@ -976,12 +980,7 @@ mwifiex_wmm_get_highest_priolist_ptr(struct mwifiex_adapter *adapter,
} while (ptr != head);
}

/* No packet at any TID for this priv. Mark as such
* to skip checking TIDs for this priv (until pkt is
* added).
*/
atomic_set(hqp, NO_PKT_PRIO_TID);

skip_bss:
/* Get next bss priority node */
bssprio_node = list_first_entry(&bssprio_node->list,
struct mwifiex_bss_prio_node,
Expand Down

0 comments on commit d496df1

Please sign in to comment.