Kojto CC3000 Hostdriver With Mbed Socket interface

Dependents:   WiFiDip-KitchenSink WiFiDip-UsbKitchenSink WiFiDipCortexSensor WifiDipCortex-UDPDemo

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
38:1f70a62a160e
Parent:
32:e62d7252401e
Child:
39:3332f57b7f1e
--- a/cc3000.cpp	Tue Oct 08 16:38:08 2013 +0200
+++ b/cc3000.cpp	Wed Oct 09 20:18:40 2013 +0200
@@ -116,9 +116,7 @@
 }
 
 void cc3000::start_smart_config(const uint8_t *smart_config_key) {
-    // Reset all the previous configuration
     _wlan.ioctl_set_connection_policy(0, 0, 0);
-    _wlan.ioctl_del_profile(255);
 
     //Wait until CC3000 is disconected
     while (_status.connected == 1)
@@ -128,7 +126,6 @@
     }
 
     // Trigger the Smart Config process
-
     _wlan.smart_config_set_prefix(cc3000_prefix);
     // Start the Smart Config process with AES disabled
     _wlan.smart_config_start(0);
@@ -139,7 +136,6 @@
     while (_status.smart_config_complete == 0)
     {
         wait_ms(100);
-
     }
 
     DBG_CC("Smartconfig finished");
@@ -164,7 +160,7 @@
     wait(2);
 
     // Mask out all non-required events
-    _wlan.set_event_mask(HCI_EVNT_WLAN_KEEPALIVE|HCI_EVNT_WLAN_UNSOL_INIT|HCI_EVNT_WLAN_ASYNC_PING_REPORT);
+    _wlan.set_event_mask(HCI_EVNT_WLAN_KEEPALIVE | HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_ASYNC_PING_REPORT);
 }
 
 bool cc3000::connect_secure(const uint8_t *ssid, const uint8_t *key, int32_t security_mode) {