Search Linux Wireless

RE: [PATCH v5 5/5] cfg80211: Enable GO operation on indoor channels

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

 



> >  static bool cfg80211_go_permissive_chan(struct
> cfg80211_registered_device *rdev,
> >                                         struct ieee80211_channel
> > *chan) @@ -621,8 +623,14 @@ static bool
> cfg80211_go_permissive_chan(struct cfg80211_registered_device *rdev,
> >         ASSERT_RTNL();
> >
> >         if (!config_enabled(CONFIG_CFG80211_REG_RELAX_NO_IR) ||
> > -           !(wiphy->regulatory_flags & REGULATORY_ENABLE_RELAX_NO_IR)
> ||
> > -           !(chan->flags & IEEE80211_CHAN_GO_CONCURRENT))
> > +           !(wiphy->regulatory_flags & REGULATORY_ENABLE_RELAX_NO_IR))
> > +               return false;
> > +
> > +       if (regulatory_indoor_allowed() &&
> > +           (chan->flags & IEEE80211_CHAN_INDOOR_ONLY))
> > +               return true;
> > +
> > +       if (!(chan->flags & IEEE80211_CHAN_GO_CONCURRENT))
> >                 return false;
> 
> Shouldn't this check go before the indoor one?
> 

I do not think so, as this relaxations is orthogonal to the GO concurrent one. It means that If a channel is enabled but only under indoor and indoor operation is hinted the relaxation removes the NO_IR restriction if such exists (without the relaxation indoor operation would be  allowed but not  for GO).

Regards,

Ilan.
��.n��������+%������w��{.n�����{���zW����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[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