mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-11-26 06:07:26 +01: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/mpdu.h"
|
||||||
#include "src/band.h"
|
#include "src/band.h"
|
||||||
#include "src/scan.h"
|
#include "src/scan.h"
|
||||||
|
#include "src/vendor_quirks.h"
|
||||||
|
|
||||||
/* User configurable options */
|
/* User configurable options */
|
||||||
static double RANK_2G_FACTOR;
|
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;
|
uint16_t cost_flags;
|
||||||
bool dgaf_disable;
|
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)) {
|
if (!bss->wpa && is_ie_wpa_ie(data, len)) {
|
||||||
bss->wpa = l_memdup(data - 2, len + 2);
|
bss->wpa = l_memdup(data - 2, len + 2);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "src/defs.h"
|
#include "src/defs.h"
|
||||||
|
#include "src/vendor_quirks.h"
|
||||||
|
|
||||||
struct scan_freq_set;
|
struct scan_freq_set;
|
||||||
struct ie_rsn_info;
|
struct ie_rsn_info;
|
||||||
@ -79,6 +80,7 @@ struct scan_bss {
|
|||||||
uint8_t *wfd; /* Concatenated WFD IEs */
|
uint8_t *wfd; /* Concatenated WFD IEs */
|
||||||
ssize_t wfd_size; /* Size of Concatenated WFD IEs */
|
ssize_t wfd_size; /* Size of Concatenated WFD IEs */
|
||||||
int8_t snr;
|
int8_t snr;
|
||||||
|
struct vendor_quirk vendor_quirks;
|
||||||
bool mde_present : 1;
|
bool mde_present : 1;
|
||||||
bool cc_present : 1;
|
bool cc_present : 1;
|
||||||
bool cap_rm_neighbor_report : 1;
|
bool cap_rm_neighbor_report : 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user