On Thu, 2013-11-21 at 14:28 +0100, Marek Kwaczynski wrote: > Update Operating mode is needed when User Space received Assoc > Request contains Operating mode notification element. > --- Need signed-off-by, there are two spaces in the subject where it should only be one. > +++ b/net/mac80211/cfg.c > @@ -1383,6 +1383,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, > struct ieee80211_sub_if_data *sdata; > int err; > int layer2_update; > + enum ieee80211_band band; > > if (params->vlan) { > sdata = IEEE80211_DEV_TO_SUB_IF(params->vlan); > @@ -1425,6 +1426,12 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, > if (!test_sta_flag(sta, WLAN_STA_TDLS_PEER)) > rate_control_rate_init(sta); > > + if (params->vht_opmode_used) { > + band = ieee80211_get_sdata_band(sdata); could declare band right here? > + ieee80211_vht_handle_opmode(sdata, sta, params->vht_opmode, > + band, 0); > + } Are you sure this should be at this place and not before moving the station to ASSOC/initialising rate control? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html