diff options
author | Jeff Johnson <jjohnson@codeaurora.org> | 2013-04-11 15:11:27 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2013-04-14 12:07:58 -0700 |
commit | d5b19ca2060d66027dd97610c1d0934e90081c64 (patch) | |
tree | 9d8fb5ad165f2ed42c6853829631ab39d214a84e | |
parent | 37f2e371c43588ca3661584a79b6544de345189a (diff) | |
download | netd-jb-mr2.0.0-release.tar.gz |
Enable 802.11g hardware mode in hostapd.confandroid-4.3_r3.1android-4.3_r3android-4.3_r2.3android-4.3_r2.2android-4.3_r2.1android-4.3_r2android-4.3_r1.1android-4.3_r1android-4.3_r0.9.1android-4.3_r0.9android-4.3.1_r1jb-mr2.0.0-releasejb-mr2.0-releasejb-mr2-releasejb-mr2-dev
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.cpp | 3 |
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) { |