]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
P2P: Collect and use extended data on used frequencies
authorIlan Peer <ilan.peer@intel.com>
Mon, 19 May 2014 07:05:35 +0000 (10:05 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Jun 2014 21:21:40 +0000 (00:21 +0300)
commita0c90bb073b793ee0004b1160a6eed1bae1741c1
treefb7b4d557069d7d4b23d798569a0e5ecaa741712
parentb278f323edf24a7254c07bcbd7b87808eb72b4ee
P2P: Collect and use extended data on used frequencies

When the number of frequencies supported by the kernel is bigger than
one, and there is a need to pick a frequency for a new flow such as P2P
GO Negotiation or P2P Invitation, the flow should be able to pick the
best frequency among all the frequencies currently used by the device.

In order to prioritize between the currently used frequencies, add
the ability to collect additional data about each used frequency
(if the frequency is used by a station interface or P2P Client)
and when needed select the best frequency, where:

1. Infrastructure interfaces have highest priority
2. P2P Client interfaces have higher priority over AP/GO
   interfaces.

The rational is that the frequency of an AP/GO can change while
that of a station interface cannot.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h