]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Increase the buffer length for debug printing channels
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 28 Apr 2022 18:15:41 +0000 (21:15 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 28 Apr 2022 18:15:41 +0000 (21:15 +0300)
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 <quic_jouni@quicinc.com>
src/drivers/driver_nl80211_capa.c

index 3a42706ecba36660c958cf08896348de89474b5a..1ab23f0f3ec90614f6a91f716e519e3399b7092f 100644 (file)
@@ -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;