wpa_supplicant: src: Replace Sane with Valid.
Replace the word Sane with Valid which is inclusive. Signed-off-by: Arowa Suliman <arowa@chromium.org>
This commit is contained in:
parent
12388313a0
commit
46b60299a4
4 changed files with 5 additions and 5 deletions
|
@ -1894,11 +1894,11 @@ struct wpa_driver_capa {
|
||||||
*/
|
*/
|
||||||
#define WPA_DRIVER_FLAGS_P2P_MGMT_AND_NON_P2P 0x00002000
|
#define WPA_DRIVER_FLAGS_P2P_MGMT_AND_NON_P2P 0x00002000
|
||||||
/**
|
/**
|
||||||
* Driver is known to use sane error codes, i.e., when it indicates that
|
* Driver is known to use valid error codes, i.e., when it indicates that
|
||||||
* something (e.g., association) fails, there was indeed a failure and the
|
* something (e.g., association) fails, there was indeed a failure and the
|
||||||
* operation does not end up getting completed successfully later.
|
* operation does not end up getting completed successfully later.
|
||||||
*/
|
*/
|
||||||
#define WPA_DRIVER_FLAGS_SANE_ERROR_CODES 0x00004000
|
#define WPA_DRIVER_FLAGS_VALID_ERROR_CODES 0x00004000
|
||||||
/** Driver supports off-channel TX */
|
/** Driver supports off-channel TX */
|
||||||
#define WPA_DRIVER_FLAGS_OFFCHANNEL_TX 0x00008000
|
#define WPA_DRIVER_FLAGS_OFFCHANNEL_TX 0x00008000
|
||||||
/** Driver indicates TX status events for EAPOL Data frames */
|
/** Driver indicates TX status events for EAPOL Data frames */
|
||||||
|
|
|
@ -268,7 +268,7 @@ const char * driver_flag_to_string(u64 flag)
|
||||||
DF2S(P2P_CAPABLE);
|
DF2S(P2P_CAPABLE);
|
||||||
DF2S(AP_TEARDOWN_SUPPORT);
|
DF2S(AP_TEARDOWN_SUPPORT);
|
||||||
DF2S(P2P_MGMT_AND_NON_P2P);
|
DF2S(P2P_MGMT_AND_NON_P2P);
|
||||||
DF2S(SANE_ERROR_CODES);
|
DF2S(VALID_ERROR_CODES);
|
||||||
DF2S(OFFCHANNEL_TX);
|
DF2S(OFFCHANNEL_TX);
|
||||||
DF2S(EAPOL_TX_STATUS);
|
DF2S(EAPOL_TX_STATUS);
|
||||||
DF2S(DEAUTH_TX_STATUS);
|
DF2S(DEAUTH_TX_STATUS);
|
||||||
|
|
|
@ -1389,7 +1389,7 @@ int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
|
||||||
WPA_DRIVER_AUTH_SHARED |
|
WPA_DRIVER_AUTH_SHARED |
|
||||||
WPA_DRIVER_AUTH_LEAP;
|
WPA_DRIVER_AUTH_LEAP;
|
||||||
|
|
||||||
drv->capa.flags |= WPA_DRIVER_FLAGS_SANE_ERROR_CODES;
|
drv->capa.flags |= WPA_DRIVER_FLAGS_VALID_ERROR_CODES;
|
||||||
drv->capa.flags |= WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC_DONE;
|
drv->capa.flags |= WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC_DONE;
|
||||||
drv->capa.flags |= WPA_DRIVER_FLAGS_EAPOL_TX_STATUS;
|
drv->capa.flags |= WPA_DRIVER_FLAGS_EAPOL_TX_STATUS;
|
||||||
|
|
||||||
|
|
|
@ -3888,7 +3888,7 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
wpa_msg(wpa_s, MSG_INFO, "Association request to the driver "
|
wpa_msg(wpa_s, MSG_INFO, "Association request to the driver "
|
||||||
"failed");
|
"failed");
|
||||||
if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SANE_ERROR_CODES) {
|
if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_VALID_ERROR_CODES) {
|
||||||
/*
|
/*
|
||||||
* The driver is known to mean what is saying, so we
|
* The driver is known to mean what is saying, so we
|
||||||
* can stop right here; the association will not
|
* can stop right here; the association will not
|
||||||
|
|
Loading…
Reference in a new issue