hostap: Fix compilation issues
The big cherry-picking left some invalid code so remove/fix it in order to pass the compilation. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
parent
675346705f
commit
e1729b44ef
|
@ -319,10 +319,8 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
|
|||
struct wifi_connect_req_params *params,
|
||||
bool mode_ap)
|
||||
{
|
||||
int ret;
|
||||
struct add_network_resp resp = {0};
|
||||
char *chan_list = NULL;
|
||||
struct wpa_supplicant *wpa_s;
|
||||
int ret = 0;
|
||||
|
||||
if (!wpa_cli_cmd_v("remove_network all")) {
|
||||
|
@ -358,6 +356,7 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
|
|||
|
||||
if (!wpa_cli_cmd_v("set_network %d ieee80211w 0", resp.network_id)) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (params->band != WIFI_FREQ_BAND_UNKNOWN) {
|
||||
ret = wpa_supp_supported_channels(wpa_s, params->band, &chan_list);
|
||||
|
|
|
@ -160,7 +160,6 @@ struct wpa_supplicant *zephyr_get_handle_by_ifname(const char *ifname)
|
|||
{
|
||||
struct wpa_supplicant *wpa_s = NULL;
|
||||
struct supplicant_context *ctx = get_default_context();
|
||||
int ret;
|
||||
|
||||
wpa_s = wpa_supplicant_get_iface(ctx->supplicant, ifname);
|
||||
if (!wpa_s) {
|
||||
|
|
Loading…
Reference in a new issue