Search Linux Wireless

Re: [PATCH 1/2] cfg80211: Support for automatic channel selection in AP mode

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

 



On Wed, Jun 20, 2012 at 2:25 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Mon, 2012-06-18 at 16:30 +0530, Vivek Natarajan wrote:
>> If the driver sets WIPHY_FLAG_SUPPORTS_ACS, auto_channel_select
>> is passed to the driver as ap settings and frequency setting is
>> skipped. When the AP mode comes up in the new channel, it is
>> intimated to cfg80211 through cfg80211_ch_switch_notify which
>> in turn notifies the channel information to wpa_supplicant
>> through CH_SWITCH event.
>>
>> Signed-off-by: Vivek Natarajan <nataraja@xxxxxxxxxxxxxxxx>
>> ---
>> v2: Add a new flag attribute for _START_AP command to indicate ACS request.
>>     Update the channel/frequency information using ch_switch_notify
>>     once the driver (firmware) has selected the channel.
>>
>> For P2P, the operating channel needs to be known before group negotiation starts.
>> This is true in case of P2P GO or client. It needs a separate p2p command from
>> wpa_cli to get the acs-based best channel information from the driver.
>
> So .. is there any reason to not do only the second, and then pass that
> channel back here instead?

So, what you recommend is, for both AP and P2P GO modes, the logic
should be to request the driver for best channel, then the best
channel information event to be passed to userspace and then starting
the AP/GO mode of operation.
The current ath6kl firmware has some limitation for getting this
channel information separately and hence not yet implemented this.
Moreover this needs to be a synchronous operation: to request and get
the event for best channel after a full cycle of channel assessment is
done.

Vivek.
--
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


[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