summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2013-04-11 15:11:27 -0700
committerIliyan Malchev <malchev@google.com>2013-04-14 12:07:58 -0700
commitd5b19ca2060d66027dd97610c1d0934e90081c64 (patch)
tree9d8fb5ad165f2ed42c6853829631ab39d214a84e
parent37f2e371c43588ca3661584a79b6544de345189a (diff)
downloadnetd-jb-mr2.0.0-release.tar.gz
The current hostapd.conf generated by SoftapController does not contain a hw_mode setting. As a result hostapd defaults to 802.11b mode. This mode is inconsistent with the setting "ieee80211n=1" and prevents hostapd from using 802.11g/n rates. Add "hw_mode=g" to the generated hostapd.conf to allow 802.11g/n rates to be advertised and used. Change-Id: Ifd66da3f3ffdfffb7c28e751d20bc432e070b2c3
-rw-r--r--SoftapController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/SoftapController.cpp b/SoftapController.cpp
index 21274f4e..0b1899cf 100644
--- a/SoftapController.cpp
+++ b/SoftapController.cpp
@@ -124,7 +124,8 @@ int SoftapController::setSoftap(int argc, char *argv[]) {
char *fbuf = NULL;
asprintf(&wbuf, "interface=%s\ndriver=nl80211\nctrl_interface="
- "/data/misc/wifi/hostapd\nssid=%s\nchannel=6\nieee80211n=1\n",
+ "/data/misc/wifi/hostapd\nssid=%s\nchannel=6\nieee80211n=1\n"
+ "hw_mode=g\n",
argv[2], argv[3]);
if (argc > 4) {