mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-09-16 20:47:26 +02:00
scan: store vendor quirks in scan_bss
As each vendor IE is parsed lookup if there are any quirks associated with it, and store these in a bit mask.
This commit is contained in:
parent
84666b9703
commit
2fe8c13016
@ -51,6 +51,7 @@
|
||||
#include "src/mpdu.h"
|
||||
#include "src/band.h"
|
||||
#include "src/scan.h"
|
||||
#include "src/vendor_quirks.h"
|
||||
|
||||
/* User configurable options */
|
||||
static double RANK_2G_FACTOR;
|
||||
@ -1221,6 +1222,11 @@ static void scan_parse_vendor_specific(struct scan_bss *bss, const void *data,
|
||||
uint16_t cost_flags;
|
||||
bool dgaf_disable;
|
||||
|
||||
if (L_WARN_ON(len < 3))
|
||||
return;
|
||||
|
||||
vendor_quirks_append_for_oui(data, &bss->vendor_quirks);
|
||||
|
||||
if (!bss->wpa && is_ie_wpa_ie(data, len)) {
|
||||
bss->wpa = l_memdup(data - 2, len + 2);
|
||||
return;
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "src/defs.h"
|
||||
#include "src/vendor_quirks.h"
|
||||
|
||||
struct scan_freq_set;
|
||||
struct ie_rsn_info;
|
||||
@ -79,6 +80,7 @@ struct scan_bss {
|
||||
uint8_t *wfd; /* Concatenated WFD IEs */
|
||||
ssize_t wfd_size; /* Size of Concatenated WFD IEs */
|
||||
int8_t snr;
|
||||
struct vendor_quirk vendor_quirks;
|
||||
bool mde_present : 1;
|
||||
bool cc_present : 1;
|
||||
bool cap_rm_neighbor_report : 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user