Add capability flag for IBSS and add get_capability modes
Add a driver capability flag for drivers which support IBSS mode and set it for nl80211 drivers which have set the NL80211_IFTYPE_ADHOC. Add a new option "modes" to "get_capability" which will return "AP" and "IBSS" if the corresponding capability flags are set. The idea is that this can be used for UIs to find out if the driver supports IBSS mode. Signed-hostap: Bruno Randolf <br1@einfach.org>
This commit is contained in:
parent
ba873c1284
commit
65d52fc103
4 changed files with 50 additions and 1 deletions
|
@ -864,6 +864,8 @@ struct wpa_driver_capa {
|
|||
#define WPA_DRIVER_FLAGS_SAE 0x02000000
|
||||
/* Driver makes use of OBSS scan mechanism in wpa_supplicant */
|
||||
#define WPA_DRIVER_FLAGS_OBSS_SCAN 0x04000000
|
||||
/* Driver supports IBSS (Ad-hoc) mode */
|
||||
#define WPA_DRIVER_FLAGS_IBSS 0x08000000
|
||||
unsigned int flags;
|
||||
|
||||
int max_scan_ssids;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue