wifi: support ap-mode with wpa_supplicant
A new value for NM80211Mode is introduced (NM_802_11_MODE_AP) and the new mode is passed to wpa_supplicant analogous to adhoc-mode. The places which need to know the interface mode have been extended to handle the new mode. If the configuration does not contain a fixed frequency, a channel is selected the same way as with adhoc-mode before.
This commit is contained in:
@@ -225,15 +225,23 @@ typedef enum {
|
||||
/**
|
||||
* NM80211Mode:
|
||||
* @NM_802_11_MODE_UNKNOWN: the device or access point mode is unknown
|
||||
* @NM_802_11_MODE_ADHOC: the device or access point is in Ad-Hoc mode
|
||||
* @NM_802_11_MODE_INFRA: the device or access point is in infrastructure mode
|
||||
* @NM_802_11_MODE_ADHOC: for both devices and access point objects, indicates
|
||||
* the object is part of an Ad-Hoc 802.11 network without a central
|
||||
* coordinating access point.
|
||||
* @NM_802_11_MODE_INFRA: the device or access point is in infrastructure mode.
|
||||
* For devices, this indicates the device is an 802.11 client/station. For
|
||||
* access point objects, this indicates the object is an access point that
|
||||
* provides connectivity to clients.
|
||||
* @NM_802_11_MODE_AP: the device is an access point/hotspot. Not valid for
|
||||
* access point objects; used only for hotspot mode on the local machine.
|
||||
*
|
||||
* Indicates the 802.11 mode an access point or device is currently in.
|
||||
**/
|
||||
typedef enum {
|
||||
NM_802_11_MODE_UNKNOWN = 0,
|
||||
NM_802_11_MODE_ADHOC,
|
||||
NM_802_11_MODE_INFRA
|
||||
NM_802_11_MODE_INFRA,
|
||||
NM_802_11_MODE_AP
|
||||
} NM80211Mode;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user