cfg80211: Add a function to get the number of supported channels