projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ededf1f
)
ath9k: change beacon allocation to prefer the first beacon slot
author
Felix Fietkau
<
[email protected]
>
Thu, 13 May 2010 18:37:24 +0000
(20:37 +0200)
committer
John W. Linville
<
[email protected]
>
Tue, 25 May 2010 15:12:54 +0000
(11:12 -0400)
This fixes IBSS beacon transmissions without VEOL enabled
Signed-off-by: Felix Fietkau <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/beacon.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/beacon.c
b/drivers/net/wireless/ath/ath9k/beacon.c
index c8a4558f79ba0573a674829b53d6cfef2258e347..77face76e05f396b9f68785bf0832cdf991b806f 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/beacon.c
+++ b/
drivers/net/wireless/ath/ath9k/beacon.c
@@
-274,17
+274,11
@@
int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif)
avp->av_bslot = 0;
for (slot = 0; slot < ATH_BCBUF; slot++)
if (sc->beacon.bslot[slot] == NULL) {
- /*
- * XXX hack, space out slots to better
- * deal with misses
- */
- if (slot+1 < ATH_BCBUF &&
- sc->beacon.bslot[slot+1] == NULL) {
- avp->av_bslot = slot+1;
- break;
- }
avp->av_bslot = slot;
+
/* NB: keep looking for a double slot */
+ if (slot == 0 || !sc->beacon.bslot[slot-1])
+ break;
}
BUG_ON(sc->beacon.bslot[avp->av_bslot] != NULL);
sc->beacon.bslot[avp->av_bslot] = vif;