From: Jouni Malinen Date: Wed, 14 Oct 2015 11:58:07 +0000 (+0300) Subject: nl80211: Increase buffer size for reporting scan frequencies X-Git-Tag: hostap_2_6~1518 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712525b01e087bf704423279b26c63db6fdd7dbb;p=thirdparty%2Fhostap.git 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 --- 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;