Allow for every SSID character to be non printable.
authorRoy Marples <roy@marples.name>
Fri, 12 Sep 2014 10:57:32 +0000 (10:57 +0000)
committerRoy Marples <roy@marples.name>
Fri, 12 Sep 2014 10:57:32 +0000 (10:57 +0000)
src/libdhcpcd/dhcpcd.h

index 337dbfd1223b8eb3e4f5f0c97c75a2daef536bd2..8c788e801e8d84f9a807952680c2c328c3c26200 100644 (file)
@@ -47,7 +47,8 @@ extern "C" {
 #define DHCPCD_RETRYOPEN       100     /* milliseconds */
 #define DHCPCD_WI_HIST_MAX     10      /* Recall 10 scans for averages */
 
-#define IF_SSIDSIZE            33
+/* Each non printable byte of the SSID is represented as \000 */
+#define IF_SSIDSIZE            ((32 * 4) + 1)
 #define IF_BSSIDSIZE           64
 #define FLAGSIZE               64
 #define TYPESIZE               8