P2P: Remove P2P group on driver resource becoming unavailable
Add a new driver event, EVENT_INTERFACE_UNAVAILABLE, for indicating that the driver is not able to continue operating the virtual interface in its current mode anymore, e.g., due to operating channel for GO interface forced to a DFS channel by another virtual interface. When this happens for a P2P group interface, the P2P group will be terminated and P2P-GROUP-REMOVED event shows the reason for this as follows: P2P-GROUP-REMOVED wlan0 GO reason=UNAVAILABLE
This commit is contained in:
parent
129eb428b1
commit
c973f3868a
5 changed files with 38 additions and 2 deletions
|
@ -2212,7 +2212,21 @@ enum wpa_event_type {
|
|||
* e.g., because of a regulatory domain change triggered by scan
|
||||
* results including an AP advertising a country code.
|
||||
*/
|
||||
EVENT_CHANNEL_LIST_CHANGED
|
||||
EVENT_CHANNEL_LIST_CHANGED,
|
||||
|
||||
/**
|
||||
* EVENT_INTERFACE_UNAVAILABLE - Notify that interface is unavailable
|
||||
*
|
||||
* This event is used to indicate that the driver cannot maintain this
|
||||
* interface in its operation mode anymore. The most likely use for
|
||||
* this is to indicate that AP mode operation is not available due to
|
||||
* operating channel would need to be changed to a DFS channel when
|
||||
* the driver does not support radar detection and another virtual
|
||||
* interfaces caused the operating channel to change. Other similar
|
||||
* resource conflicts could also trigger this for station mode
|
||||
* interfaces.
|
||||
*/
|
||||
EVENT_INTERFACE_UNAVAILABLE
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue