File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class WiFiClass: public NetworkInterface
27
27
sta_config.security = WIFI_SECURITY_TYPE_PSK;
28
28
sta_config.channel = WIFI_CHANNEL_ANY;
29
29
sta_config.band = WIFI_FREQ_BAND_2_4_GHZ;
30
- sta_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
30
+ sta_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
31
31
32
32
int ret = net_mgmt (NET_REQUEST_WIFI_CONNECT, sta_iface, &sta_config,
33
33
sizeof (struct wifi_connect_req_params ));
@@ -56,7 +56,7 @@ class WiFiClass: public NetworkInterface
56
56
ap_config.security = WIFI_SECURITY_TYPE_PSK;
57
57
ap_config.channel = channel;
58
58
ap_config.band = WIFI_FREQ_BAND_2_4_GHZ;
59
- ap_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
59
+ ap_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
60
60
61
61
int ret = net_mgmt (NET_REQUEST_WIFI_AP_ENABLE, ap_iface, &ap_config,
62
62
sizeof (struct wifi_connect_req_params ));
@@ -82,7 +82,7 @@ class WiFiClass: public NetworkInterface
82
82
return WL_NO_SHIELD;
83
83
}
84
84
85
- if (sta_state.state >= WIFI_STATE_ASSOCIATED) {
85
+ if (sta_state.state >= WIFI_STATE_ASSOCIATED) {
86
86
return WL_CONNECTED;
87
87
} else {
88
88
return WL_DISCONNECTED;
You can’t perform that action at this time.
0 commit comments