cfg80211: correctly check ad-hoc channels