From: Javier Cardona Date: Tue, 7 Dec 2010 21:36:55 +0000 (-0800) Subject: ath5k: Prevent mesh interfaces from being counted as ad-hoc X-Git-Tag: 2.1b_release~6001^2~7^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c26d5339424e68f8643cf3448986c4f77b941a65;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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 Signed-off-by: John W. Linville --- 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++; }