Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c26d5339 authored by Javier Cardona's avatar Javier Cardona Committed by John W. Linville
Browse files

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: default avatarJavier Cardona <javier@cozybit.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d82b577b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++;
	}