Skip to content

Commit b64590b

Browse files
prashantraradbridge
authored andcommitted
reverting all tabs to spaces
1 parent 2edd6e5 commit b64590b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ static rtw_result_t scan_result_handler( rtw_scan_handler_result_t* malloced_sca
4343
wifi_scan_hdl *scan_handler = (wifi_scan_hdl *)malloced_scan_result->user_data;
4444
if (malloced_scan_result->scan_complete != RTW_TRUE) {
4545
if(scan_handler->ap_details && scan_handler->scan_num > scan_handler->ap_num){
46-
nsapi_wifi_ap_t ap;
46+
nsapi_wifi_ap_t ap;
4747
rtw_scan_result_t* record = &malloced_scan_result->ap_details;
48-
record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */
48+
record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */
4949
memset((void*)&ap, 0x00, sizeof(nsapi_wifi_ap_t));
5050
memcpy(ap.ssid, record->SSID.val, record->SSID.len);
5151
memcpy(ap.bssid, record->BSSID.octet, 6);
@@ -90,7 +90,7 @@ RTWInterface::RTWInterface(bool debug)
9090
{
9191
emac_interface_t *emac;
9292
int ret;
93-
extern u32 GlobalDebugEnable;
93+
extern u32 GlobalDebugEnable;
9494

9595
GlobalDebugEnable = debug?1:0;
9696
emac = wlan_emac_init_interface();
@@ -99,13 +99,13 @@ RTWInterface::RTWInterface(bool debug)
9999
return;
100100
}
101101
emac->ops.power_up(emac);
102-
if (_inited == false) {
102+
if (_inited == false) {
103103
ret = mbed_lwip_init(emac);
104104
if (ret != 0) {
105105
printf("Error init RTWInterface!(%d)\r\n", ret);
106106
return;
107107
}
108-
_inited = true;
108+
_inited = true;
109109
}
110110
}
111111

@@ -182,7 +182,7 @@ nsapi_error_t RTWInterface::connect()
182182
break;
183183
case NSAPI_SECURITY_NONE:
184184
sec = RTW_SECURITY_OPEN;
185-
break;
185+
break;
186186
default:
187187
return NSAPI_ERROR_PARAMETER;
188188
}
@@ -191,7 +191,7 @@ nsapi_error_t RTWInterface::connect()
191191
uint8_t pscan_config = PSCAN_ENABLE;
192192
wifi_set_pscan_chan(&_channel, &pscan_config, 1);
193193
}
194-
194+
195195
ret = wifi_connect(_ssid, sec, _pass, strlen(_ssid), strlen(_pass), 0, (void *)NULL);
196196
if (ret != RTW_SUCCESS) {
197197
printf("failed: %d\r\n", ret);
@@ -242,7 +242,7 @@ int8_t RTWInterface::get_rssi()
242242
}
243243

244244
nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
245-
nsapi_security_t security, uint8_t channel)
245+
nsapi_security_t security, uint8_t channel)
246246
{
247247
set_credentials(ssid, pass, security);
248248
set_channel(channel);
@@ -252,12 +252,12 @@ nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
252252
nsapi_error_t RTWInterface::disconnect()
253253
{
254254
char essid[33];
255-
255+
256256
wlan_emac_link_change(false);
257-
mbed_lwip_bringdown();
257+
mbed_lwip_bringdown();
258258
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
259259
return NSAPI_ERROR_NO_CONNECTION;
260-
if(wifi_disconnect()<0){
260+
if(wifi_disconnect()<0){
261261
return NSAPI_ERROR_DEVICE_ERROR;
262262
}
263263
while(1){

0 commit comments

Comments
 (0)