Skip to content

Commit

Permalink
modules: hostap: Support BSSID configuration for connect command
Browse files Browse the repository at this point in the history
Support BSSID configuration while setting up the network information
as part of the connect command processing.

Signed-off-by: Ravi Dondaputi <[email protected]>
  • Loading branch information
rado17 committed Apr 5, 2024
1 parent a5b54c5 commit c99d872
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/hostap/src/supp_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
}
}

if (params->bssid[0] != 0) {
_wpa_cli_cmd_v("set_network %d bssid %s",
resp.network_id, params->bssid);
}

/* enable and select network */
_wpa_cli_cmd_v("enable_network %d", resp.network_id);
_wpa_cli_cmd_v("select_network %d", resp.network_id);
Expand Down

0 comments on commit c99d872

Please sign in to comment.