nl80211: Increase buffer size for reporting scan frequencies

It is possible for a driver to support sufficient number of channels to
hit the previous limit of 200 characters for the "nl80211: Scan included
frequencies:" debug message. Increase the maximum buffer length to 300
characters to allow more complete list of scanned frequencies to be
written into the debug log. This limit is more in line with the
MAX_REPORT_FREQS (50) limit.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-10-14 14:58:07 +03:00 committed by Jouni Malinen
parent 207976f053
commit 712525b01e

View file

@ -1006,7 +1006,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[200], *pos, *end; char msg[300], *pos, *end;
int res; int res;
pos = msg; pos = msg;
@ -1753,7 +1753,7 @@ static void send_vendor_scan_event(struct wpa_driver_nl80211_data *drv,
} }
if (tb[QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES]) { if (tb[QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES]) {
char msg[200], *pos, *end; char msg[300], *pos, *end;
int res; int res;
pos = msg; pos = msg;