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>
struct nlattr *nl;
int rem;
struct scan_info *info;
-#define MAX_REPORT_FREQS 100
+#define MAX_REPORT_FREQS 110
int freqs[MAX_REPORT_FREQS];
int num_freqs = 0;
}
}
if (tb[NL80211_ATTR_SCAN_FREQUENCIES]) {
- char msg[500], *pos, *end;
+ char msg[MAX_REPORT_FREQS * 5], *pos, *end;
int res;
pos = msg;