From 712525b01e087bf704423279b26c63db6fdd7dbb Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 14 Oct 2015 14:58:07 +0300 Subject: [PATCH] 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 --- src/drivers/driver_nl80211_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c index d1c6cd538..721b1b91e 100644 --- a/src/drivers/driver_nl80211_event.c +++ b/src/drivers/driver_nl80211_event.c @@ -1006,7 +1006,7 @@ static void send_scan_event(struct wpa_driver_nl80211_data *drv, int aborted, } } if (tb[NL80211_ATTR_SCAN_FREQUENCIES]) { - char msg[200], *pos, *end; + char msg[300], *pos, *end; int res; 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]) { - char msg[200], *pos, *end; + char msg[300], *pos, *end; int res; pos = msg;