diff options
author | Javier Cardona <javier@cozybit.com> | 2010-12-07 13:36:55 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-08 15:23:45 -0500 |
commit | c26d5339424e68f8643cf3448986c4f77b941a65 (patch) | |
tree | 6edbdc49c778c07540e13b06a811f57cd4aa69f9 /drivers/net | |
parent | d82b577b8cf89a17cab932db272769dfc69a98df (diff) | |
download | kernel_samsung_smdk4412-c26d5339424e68f8643cf3448986c4f77b941a65.zip kernel_samsung_smdk4412-c26d5339424e68f8643cf3448986c4f77b941a65.tar.gz kernel_samsung_smdk4412-c26d5339424e68f8643cf3448986c4f77b941a65.tar.bz2 |
ath5k: Prevent mesh interfaces from being counted as ad-hoc
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 29b855c..888502e 100644 --- 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++; } |