nl80211: Increase the scan frequencies buffer

With the UHB enabled, the number of scanned frequencies may exceed
the buffer size. Increase it.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
Avraham Stern 2022-12-01 12:01:45 +02:00 committed by Jouni Malinen
parent 1b025bda57
commit 81dedfbd77

View file

@ -1679,7 +1679,7 @@ static void send_scan_event(struct wpa_driver_nl80211_data *drv, int aborted,
struct nlattr *nl; struct nlattr *nl;
int rem; int rem;
struct scan_info *info; struct scan_info *info;
#define MAX_REPORT_FREQS 100 #define MAX_REPORT_FREQS 110
int freqs[MAX_REPORT_FREQS]; int freqs[MAX_REPORT_FREQS];
int num_freqs = 0; int num_freqs = 0;
@ -1711,7 +1711,7 @@ static void send_scan_event(struct wpa_driver_nl80211_data *drv, int aborted,
} }
} }
if (tb[NL80211_ATTR_SCAN_FREQUENCIES]) { if (tb[NL80211_ATTR_SCAN_FREQUENCIES]) {
char msg[500], *pos, *end; char msg[MAX_REPORT_FREQS * 5], *pos, *end;
int res; int res;
pos = msg; pos = msg;