|
@@ -1385,7 +1385,9 @@ static void ath9k_calculate_summary_state(struct ieee80211_hw *hw,
|
|
|
ath9k_hw_set_tsfadjust(ah, 0);
|
|
|
sc->sc_flags &= ~SC_OP_TSF_RESET;
|
|
|
|
|
|
- if (iter_data.nwds + iter_data.nmeshes)
|
|
|
+ if (iter_data.nmeshes)
|
|
|
+ ah->opmode = NL80211_IFTYPE_MESH_POINT;
|
|
|
+ else if (iter_data.nwds)
|
|
|
ah->opmode = NL80211_IFTYPE_AP;
|
|
|
else if (iter_data.nadhocs)
|
|
|
ah->opmode = NL80211_IFTYPE_ADHOC;
|