aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Pouiller <[email protected]>2020-04-06 13:17:54 +0200
committerGreg Kroah-Hartman <[email protected]>2020-04-13 14:32:38 +0200
commit32f5d47cbf01f8b31edf3bdbae82e79da76a69bd (patch)
tree880109f9110da8863fdc2632e450540479935a9b
parent9671f1338b67c93183a6051789acadd10c5942bb (diff)
staging: wfx: allow to connect an IBSS with an existing SSID
With current code, chip is not able to join an existing IBSS network. Signed-off-by: Jérôme Pouiller <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/wfx/hif_tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c
index 445906035e9d..d44e5cacbbce 100644
--- a/drivers/staging/wfx/hif_tx.c
+++ b/drivers/staging/wfx/hif_tx.c
@@ -310,7 +310,7 @@ int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf,
body->basic_rate_set =
cpu_to_le32(wfx_rate_mask_to_hw(wvif->wdev, conf->basic_rates));
memcpy(body->bssid, conf->bssid, sizeof(body->bssid));
- if (!conf->ibss_joined && ssid) {
+ if (ssid) {
body->ssid_length = cpu_to_le32(ssidlen);
memcpy(body->ssid, ssid, ssidlen);
}