IBSS: Add WPA_DRIVER_FLAGS_HT_IBSS
Add WPA_DRIVER_FLAGS_HT_IBSS driver feature flag. Some drivers could not set this feature and next could fail when we will enable HT support for IBSS with error message: nl80211: Join IBSS failed: ret=-22 (Invalid argument). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
f3b8ad4d78
commit
1830817ece
3 changed files with 38 additions and 17 deletions
|
@ -1182,6 +1182,8 @@ struct wpa_driver_capa {
|
|||
#define WPA_DRIVER_FLAGS_KEY_MGMT_OFFLOAD 0x0000000400000000ULL
|
||||
/** Driver supports TDLS channel switching */
|
||||
#define WPA_DRIVER_FLAGS_TDLS_CHANNEL_SWITCH 0x0000000800000000ULL
|
||||
/** Driver supports IBSS with HT datarates */
|
||||
#define WPA_DRIVER_FLAGS_HT_IBSS 0x0000001000000000ULL
|
||||
u64 flags;
|
||||
|
||||
#define WPA_DRIVER_SMPS_MODE_STATIC 0x00000001
|
||||
|
|
|
@ -394,6 +394,9 @@ static void wiphy_info_feature_flags(struct wiphy_info_data *info,
|
|||
|
||||
if (flags & NL80211_FEATURE_TX_POWER_INSERTION)
|
||||
capa->rrm_flags |= WPA_DRIVER_FLAGS_TX_POWER_INSERTION;
|
||||
|
||||
if (flags & NL80211_FEATURE_HT_IBSS)
|
||||
capa->flags |= WPA_DRIVER_FLAGS_HT_IBSS;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue