Fix compilation error due to use of bitwise '&' with boolean operands
Compiler throws a warning for using bitwise operation in
wpa_s_setup_sae_pt() function instead of logical AND operation on two
boolean values.
Fixes: e81ec0962d
("SAE: Use H2E unconditionally with the new AKM suites")
Signed-off-by: Sunil Ravi <sunilravi@google.com>
This commit is contained in:
parent
7bdd3f2aa6
commit
c5b950b6af
1 changed files with 1 additions and 1 deletions
|
@ -2280,7 +2280,7 @@ void wpa_s_setup_sae_pt(struct wpa_config *conf, struct wpa_ssid *ssid)
|
|||
|
||||
if (!password ||
|
||||
(conf->sae_pwe == 0 && !ssid->sae_password_id &&
|
||||
!wpa_key_mgmt_sae_ext_key(ssid->key_mgmt) &
|
||||
!wpa_key_mgmt_sae_ext_key(ssid->key_mgmt) &&
|
||||
!sae_pk_valid_password(password)) ||
|
||||
conf->sae_pwe == 3) {
|
||||
/* PT derivation not needed */
|
||||
|
|
Loading…
Reference in a new issue