summaryrefslogtreecommitdiff
path: root/cc3200/mptask.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-26 22:55:24 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-27 01:50:52 +0200
commit57fa14b5be08736b37f1629475e47c92556c0629 (patch)
tree9fccfb516deb85fa68be56cb416ab2e0cd71ec97 /cc3200/mptask.c
parentdbdcb58d6413a907e5f4aed25eee85073ff7e575 (diff)
cc3200: New WLAN API including test.
Diffstat (limited to 'cc3200/mptask.c')
-rw-r--r--cc3200/mptask.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index 4f01a66eb..f3d662af0 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -68,6 +68,7 @@
#include "mpirq.h"
#include "updater.h"
#include "moduos.h"
+#include "antenna.h"
/******************************************************************************
DECLARE PRIVATE CONSTANTS
@@ -360,11 +361,11 @@ STATIC void mptask_init_sflash_filesystem (void) {
STATIC void mptask_enter_ap_mode (void) {
// append the mac only if it's not the first boot
- bool append_mac = !PRCMGetSpecialBit(PRCM_FIRST_BOOT_BIT);
-
+ bool add_mac = !PRCMGetSpecialBit(PRCM_FIRST_BOOT_BIT);
// enable simplelink in ap mode (use the MAC address to make the ssid unique)
- wlan_sl_enable (ROLE_AP, MICROPY_PORT_WLAN_AP_SSID, strlen(MICROPY_PORT_WLAN_AP_SSID), MICROPY_PORT_WLAN_AP_SECURITY,
- MICROPY_PORT_WLAN_AP_KEY, strlen(MICROPY_PORT_WLAN_AP_KEY), MICROPY_PORT_WLAN_AP_CHANNEL, append_mac);
+ wlan_sl_init (ROLE_AP, MICROPY_PORT_WLAN_AP_SSID, strlen(MICROPY_PORT_WLAN_AP_SSID),
+ MICROPY_PORT_WLAN_AP_SECURITY, MICROPY_PORT_WLAN_AP_KEY, strlen(MICROPY_PORT_WLAN_AP_KEY),
+ MICROPY_PORT_WLAN_AP_CHANNEL, ANTENNA_TYPE_INTERNAL, add_mac);
}
STATIC void mptask_create_main_py (void) {