mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
scan: add Interworking to scan requests
This commit is contained in:
parent
a9473df555
commit
dd2daa4961
12
src/scan.c
12
src/scan.c
@ -283,9 +283,10 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc,
|
|||||||
{
|
{
|
||||||
struct l_genl_msg *msg;
|
struct l_genl_msg *msg;
|
||||||
uint32_t flags = 0;
|
uint32_t flags = 0;
|
||||||
struct iovec iov[2];
|
struct iovec iov[3];
|
||||||
unsigned int iov_elems = 0;
|
unsigned int iov_elems = 0;
|
||||||
const uint8_t *ext_capa;
|
const uint8_t *ext_capa;
|
||||||
|
uint8_t interworking[3];
|
||||||
|
|
||||||
msg = l_genl_msg_new(NL80211_CMD_TRIGGER_SCAN);
|
msg = l_genl_msg_new(NL80211_CMD_TRIGGER_SCAN);
|
||||||
|
|
||||||
@ -302,6 +303,15 @@ 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 */
|
||||||
|
interworking[0] = IE_TYPE_INTERWORKING;
|
||||||
|
interworking[1] = 1;
|
||||||
|
interworking[2] = 0; /* Private network, INet=0,ASRA=0,ESR=0,UESA=0 */
|
||||||
|
|
||||||
|
iov[iov_elems].iov_base = interworking;
|
||||||
|
iov[iov_elems].iov_len = 3;
|
||||||
|
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) {
|
||||||
iov[iov_elems].iov_base = (void *) params->extra_ie;
|
iov[iov_elems].iov_base = (void *) params->extra_ie;
|
||||||
|
Loading…
Reference in New Issue
Block a user