On Mon, 2016-08-15 at 21:07 +0300, Jouni Malinen wrote: > From: Peng Xu <pxu@xxxxxxxxxxxxxxxx> > > Add HT and VHT information in struct cfg80211_ap_settings when > starting ap so that driver does not need to parse IE to obtain > the information. > +enum ht_vht_support { > + HT_VHT_DISABLED, > + HT_VHT_ENABLED, > + HT_VHT_NOT_INDICATED > +}; So if you get HT_VHT_NOT_INDICATED in the driver, don't you *still* have to parse the IEs? Arguably, cfg80211 could know itself by parsing though, so it could already fall back to that, no? But if you do that, you already need the parsing code, so then perhaps it would make sense to just always use the parsing in cfg80211? Or export a parsing function to use in driver(s)? > @@ -719,6 +729,11 @@ struct cfg80211_ap_settings { > bool p2p_opp_ps; > const struct cfg80211_acl_data *acl; > bool pbss; > + enum ht_vht_support ht_enabled; > + enum ht_vht_support vht_enabled; > + enum ht_vht_support require_ht; > + enum ht_vht_support require_vht; > + (nit - extra blank line) johannes