P2P: Reject multi-channel concurrent operations depending on driver
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 14 Oct 2010 11:24:56 +0000 (14:24 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 14 Oct 2010 11:24:56 +0000 (14:24 +0300)
commitd054a4622c97848c5aaa328e1bc0d5e9d7c6855f
treefc35cae028d70a1d8612393ddf1cbe2d2f2e6a9c
parent7861cb08c9bca55c195fcd5a9472d0c3db6c040c
P2P: Reject multi-channel concurrent operations depending on driver

The driver wrapper can now indicate whether the driver supports
concurrent operations on multiple channels (e.g., infra STA connection
on 5 GHz channel 36 and P2P group on 2.4 GHz channel 1). If not,
P2P_CONNECT commands will be rejected if they would require
multi-channel concurrency.

The new failure codes for P2P_CONNECT:

FAIL-CHANNEL-UNAVAILABLE:
The requested/needed channel is not currently available (i.e., user has
an option of disconnecting another interface to make the channel
available).

FAIL-CHANNEL-UNSUPPORTED:
The request channel is not available for P2P.
src/drivers/driver.h
src/p2p/p2p.h
src/p2p/p2p_utils.c
wpa_supplicant/ctrl_iface.c
wpa_supplicant/p2p_supplicant.c