projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d82b577
)
ath5k: Prevent mesh interfaces from being counted as ad-hoc
author
Javier Cardona
<javier@cozybit.com>
Tue, 7 Dec 2010 21:36:55 +0000
(13:36 -0800)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 8 Dec 2010 20:23:45 +0000
(15:23 -0500)
This results in an erroneus num_adhoc_vifs count, as the this counter
was incremented but not decremented for mesh interfaces.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/base.c
b/drivers/net/wireless/ath/ath5k/base.c
index 29b855c426bb983a0bfbd17bc0ebeb3c286a5a12..888502e2bf86f55a4f93c4fa9ade6e3fbb5796b8 100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/base.c
+++ b/
drivers/net/wireless/ath/ath5k/base.c
@@
-2872,7
+2872,7
@@
static int ath5k_add_interface(struct ieee80211_hw *hw,
sc->bslot[avf->bslot] = vif;
if (avf->opmode == NL80211_IFTYPE_AP)
sc->num_ap_vifs++;
- else
+ else
if (avf->opmode == NL80211_IFTYPE_ADHOC)
sc->num_adhoc_vifs++;
}