summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {