Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327927
b: refs/heads/master
c: 90be994
h: refs/heads/master
i:
  327925: 5b80934
  327923: a5f0398
  327919: 8eabce9
v: v3
  • Loading branch information
Mohammed Shafi Shajakhan authored and John W. Linville committed Sep 11, 2012
1 parent 0f4a3bb commit 36bce89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af2c8ffe56133928355d1d51978b35115ffbbc2a
refs/heads/master: 90be994cd0d70fbe4a97b144806db6cfa497392c
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/ar9003_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,10 @@ u32 ar9003_mci_get_next_gpm_offset(struct ath_hw *ah, bool first, u32 *more)

if (first) {
gpm_ptr = MS(REG_READ(ah, AR_MCI_GPM_1), AR_MCI_GPM_WRITE_PTR);

if (gpm_ptr >= mci->gpm_len)
gpm_ptr = 0;

mci->gpm_idx = gpm_ptr;
return gpm_ptr;
}
Expand Down Expand Up @@ -1365,6 +1369,10 @@ u32 ar9003_mci_get_next_gpm_offset(struct ath_hw *ah, bool first, u32 *more)
more_gpm = MCI_GPM_NOMORE;

temp_index = mci->gpm_idx;

if (temp_index >= mci->gpm_len)
temp_index = 0;

mci->gpm_idx++;

if (mci->gpm_idx >= mci->gpm_len)
Expand Down

0 comments on commit 36bce89

Please sign in to comment.