> > > + if (sme->channel) { > > + /* FIXME: need to set proper nl80211_channel_type > > value */ > > + cfg80211_chandef_create(&chandef, sme->channel, > > + NL80211_CHAN_HT20); > > + /* fall-back to minimal safe chandef description */ > > + if (!cfg80211_chandef_valid(&chandef)) > > + cfg80211_chandef_create(&chandef, sme- > > >channel, > > + NL80211_CHAN_HT20); > > > This seems odd since you just do the same thing over again? Not that I > could see how it would be invalid anyway. The first call of cfg80211_chandef_create will be replaced by proper chandef calculation based on current h/w channel settings. This piece is still in work. NL80211_CHAN_HT20 is going to be used as a safe fallback when channel info turns out to be inconsistent. Regards, Sergey