Commit 537000ac authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: also fix network parameters for IBSS networks

Current code skip some configuration during joining an IBSS network.
Indeed, it seems that this configuration is not used in IBSS. However,
it would be harmless to set them. In add, we would prefer to keep
association processes for ad-hoc and managed networks the closest as
possible. It also ensures the values of internal parameters of the
firmware.

Therefore, apply them unconditionally.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200420160311.57323-6-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 988cf07b
...@@ -494,14 +494,13 @@ static void wfx_join_finalize(struct wfx_vif *wvif, ...@@ -494,14 +494,13 @@ static void wfx_join_finalize(struct wfx_vif *wvif,
bss_params.aid = info->aid; bss_params.aid = info->aid;
hif_set_association_mode(wvif, info); hif_set_association_mode(wvif, info);
hif_keep_alive_period(wvif, 0);
hif_set_bss_params(wvif, &bss_params);
hif_set_beacon_wakeup_period(wvif, 1, 1);
wfx_update_pm(wvif);
if (!info->ibss_joined) { if (!info->ibss_joined)
wvif->state = WFX_STATE_STA; wvif->state = WFX_STATE_STA;
hif_keep_alive_period(wvif, 0);
hif_set_bss_params(wvif, &bss_params);
hif_set_beacon_wakeup_period(wvif, 1, 1);
wfx_update_pm(wvif);
}
} }
int wfx_join_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif) int wfx_join_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment