3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

scan: only set Interworking if capable

Checks that the extended capabilities has the Interworking
bit set before adding the IE.
This commit is contained in:
James Prestwood 2019-08-21 15:32:31 -07:00 committed by Denis Kenzior
parent 20887dfe1a
commit 41740ceabc

View File

@ -303,14 +303,17 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
iov[iov_elems].iov_len = ext_capa[1] + 2; iov[iov_elems].iov_len = ext_capa[1] + 2;
iov_elems++; iov_elems++;
/* Order 12 - Interworking */ if (util_is_bit_set(ext_capa[3], 7)) {
interworking[0] = IE_TYPE_INTERWORKING; /* Order 12 - Interworking */
interworking[1] = 1; interworking[0] = IE_TYPE_INTERWORKING;
interworking[2] = 0; /* Private network, INet=0,ASRA=0,ESR=0,UESA=0 */ interworking[1] = 1;
/* Private network, INet=0,ASRA=0,ESR=0,UESA=0 */
interworking[2] = 0;
iov[iov_elems].iov_base = interworking; iov[iov_elems].iov_base = interworking;
iov[iov_elems].iov_len = 3; iov[iov_elems].iov_len = 3;
iov_elems++; iov_elems++;
}
/* Order Last (assuming WSC vendor specific) */ /* Order Last (assuming WSC vendor specific) */
if (params->extra_ie && params->extra_ie_size) { if (params->extra_ie && params->extra_ie_size) {