P2P: Add support for automatic channel selection at GO
authorAnil Gathala Sudha <Anil.Sudha@Atheros.com>
Wed, 10 Nov 2010 11:33:47 +0000 (13:33 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 10 Nov 2010 11:33:47 +0000 (13:33 +0200)
commit7cfc4ac31960948afdf8f3ca959b9d8744b4524d
tree251503ea17cde28c0f767296e1ec2a204fbda0a4
parentbacc31286cd17ee2bb3840d625a11d30972a0167
P2P: Add support for automatic channel selection at GO

The driver wrapper may now indicate the preferred channel (e.g., based
on scan results) on both 2.4 GHz and 5 GHz bands (and an overall best
frequency). When setting up a GO, this preference information is used
to select the operating channel if configuration does not include
hardcoded channel. Similarly, this information can be used during
GO Negotiation to indicate preference for a specific channel based
on current channel conditions.

p2p_group_add command can now use special values (freq=2 and freq=5)
to indicate that the GO is to be started on the specified band.
src/drivers/driver.h
src/p2p/p2p.c
src/p2p/p2p.h
src/p2p/p2p_i.h
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/wpa_supplicant_i.h