netdev: move ocvc setting to after connected check
We cannot check 'handshake' until first checking that IWD is connected.
This commit is contained in:
parent
f7dc05969f
commit
cb76f219fb
|
@ -4990,8 +4990,7 @@ static void netdev_sa_query_req_frame_event(const struct mmpdu_header *hdr,
|
||||||
uint16_t transaction;
|
uint16_t transaction;
|
||||||
const uint8_t *oci;
|
const uint8_t *oci;
|
||||||
struct netdev *netdev = user_data;
|
struct netdev *netdev = user_data;
|
||||||
bool ocvc = netdev->handshake->supplicant_ocvc &&
|
bool ocvc;
|
||||||
netdev->handshake->authenticator_ocvc;
|
|
||||||
|
|
||||||
if (body_len < 4) {
|
if (body_len < 4) {
|
||||||
l_debug("SA Query request too short");
|
l_debug("SA Query request too short");
|
||||||
|
@ -5001,6 +5000,9 @@ static void netdev_sa_query_req_frame_event(const struct mmpdu_header *hdr,
|
||||||
if (!netdev->connected)
|
if (!netdev->connected)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
ocvc = netdev->handshake->supplicant_ocvc &&
|
||||||
|
netdev->handshake->authenticator_ocvc;
|
||||||
|
|
||||||
/* only care about SA Queries from our connected AP */
|
/* only care about SA Queries from our connected AP */
|
||||||
if (memcmp(hdr->address_2, netdev->handshake->aa, 6))
|
if (memcmp(hdr->address_2, netdev->handshake->aa, 6))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue