From: Jouni Malinen Date: Thu, 28 Apr 2022 18:15:41 +0000 (+0300) Subject: nl80211: Increase the buffer length for debug printing channels X-Git-Tag: hostap_2_11~2004 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=664fd83d59c99c6308a653ca8ac957ed025338b8;p=thirdparty%2Fhostap.git nl80211: Increase the buffer length for debug printing channels The previously used buffer was not large enough to be able to print out all 6 GHz channels, so use a larger buffer to avoid leaving out supported channels from the debug print. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index 3a42706ec..1ab23f0f3 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -2436,7 +2436,7 @@ static void nl80211_dump_chan_list(struct hostapd_hw_modes *modes, for (i = 0; i < num_modes; i++) { struct hostapd_hw_modes *mode = &modes[i]; - char str[200]; + char str[1000]; char *pos = str; char *end = pos + sizeof(str); int j, res;