ath9k: Replace ath9k_opmode with nl80211_iftype
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / ath9k / regd.c
index e3dd91f7b7b734e19a6e4ceeba7c989a122af303..42ce1d9abad083df844879d4a9b5d1f92905079b 100644 (file)
@@ -456,7 +456,7 @@ ath9k_regd_add_channel(struct ath_hal *ah,
                return false;
        }
 
-       if ((rd->flags & NO_HOSTAP) && (ah->ah_opmode == ATH9K_M_HOSTAP)) {
+       if ((rd->flags & NO_HOSTAP) && (ah->ah_opmode == NL80211_IFTYPE_AP)) {
                DPRINTF(ah->ah_sc, ATH_DBG_REGULATORY,
                        "Skipping HOSTAP channel\n");
                return false;