]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Increase buffer size for reporting scan frequencies
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 14 Oct 2015 11:58:07 +0000 (14:58 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 14 Oct 2015 15:43:26 +0000 (18:43 +0300)
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>
src/drivers/driver_nl80211_event.c

index d1c6cd538b7bebd4088853be3eba81fafd6baa46..721b1b91e59945afe522e25faf3bdc0ab37860db 100644 (file)
@@ -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;