Add configuration option for enabling optional use of short preamble
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 21 Aug 2008 15:36:21 +0000 (18:36 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 21 Aug 2008 15:36:21 +0000 (18:36 +0300)
hostapd/config.c
hostapd/hostapd.conf

index 72461c0..0c46b38 100644 (file)
@@ -1908,6 +1908,11 @@ struct hostapd_config * hostapd_config_read(const char *fname)
                                printf("Line %d: invalid rate list\n", line);
                                errors++;
                        }
+               } else if (os_strcmp(buf, "preamble") == 0) {
+                       if (atoi(pos))
+                               conf->preamble = SHORT_PREAMBLE;
+                       else
+                               conf->preamble = LONG_PREAMBLE;
                } else if (os_strcmp(buf, "ignore_broadcast_ssid") == 0) {
                        bss->ignore_broadcast_ssid = atoi(pos);
                } else if (os_strcmp(buf, "bridge_packets") == 0) {
index 55987dc..4665ad6 100644 (file)
@@ -159,6 +159,17 @@ fragm_threshold=2346
 #basic_rates=10 20 55 110
 #basic_rates=60 120 240
 
+# Short Preamble
+# This parameter can be used to enable optional use of short preamble for
+# frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance.
+# This applies only to IEEE 802.11b-compatible networks and this should only be
+# enabled if the local hardware supports use of short preamble. If any of the
+# associated STAs do not support short preamble, use of short preamble will be
+# disabled (and enabled when such STAs disassociate) dynamically.
+# 0 = do not allow use of short preamble (default)
+# 1 = allow use of short preamble
+#preamble=1
+
 # Station MAC address -based authentication
 # Please note that this kind of access control requires a driver that uses
 # hostapd to take care of management frame processing and as such, this can be