We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a1ffdd + 5a3562a commit 208d703Copy full SHA for 208d703
features/netsocket/emac-drivers/TARGET_WHD/interface/WhdSoftAPInterface.cpp
@@ -173,7 +173,19 @@ int WhdSoftAPInterface::stop(void)
173
return NSAPI_ERROR_DHCP_FAILURE;
174
}
175
_dhcp_server.reset();
176
- return whd_wifi_stop_ap(_whd_emac.ifp);
+
177
+ // bring down
178
+ int err = _interface->bringdown();
179
+ if (err) {
180
+ return err;
181
+ }
182
183
+ // stop softap
184
+ whd_result_t res = whd_wifi_stop_ap(_whd_emac.ifp);
185
+ if (res != WHD_SUCCESS) {
186
+ return whd_toerror(res);
187
188
+ return NSAPI_ERROR_OK;
189
190
191
int WhdSoftAPInterface::remove_custom_ie(const whd_custom_ie_info_t *ie_info)
0 commit comments