Search Linux Wireless

Re: [PATCH 5/8] qtnfmac: enable reporting the current operating channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> > +     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



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux