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

staging: wfx: drop useless update of field basic_rate_set

Basic Rates are already set by hif_join(). hif_join() is also able to
manage possible changes after association.

Firmware also allows to change the Basic Rates with
hif_set_association_mode() but it does not bring anything in our case.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200420160311.57323-10-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b0360e5
...@@ -190,15 +190,12 @@ int hif_set_block_ack_policy(struct wfx_vif *wvif, ...@@ -190,15 +190,12 @@ int hif_set_block_ack_policy(struct wfx_vif *wvif,
int hif_set_association_mode(struct wfx_vif *wvif, int hif_set_association_mode(struct wfx_vif *wvif,
struct ieee80211_bss_conf *info) struct ieee80211_bss_conf *info)
{ {
int basic_rates = wfx_rate_mask_to_hw(wvif->wdev, info->basic_rates);
struct ieee80211_sta *sta = NULL; struct ieee80211_sta *sta = NULL;
struct hif_mib_set_association_mode val = { struct hif_mib_set_association_mode val = {
.preambtype_use = 1, .preambtype_use = 1,
.mode = 1, .mode = 1,
.rateset = 1,
.spacing = 1, .spacing = 1,
.short_preamble = info->use_short_preamble, .short_preamble = info->use_short_preamble,
.basic_rate_set = cpu_to_le32(basic_rates)
}; };
rcu_read_lock(); // protect sta rcu_read_lock(); // protect sta
......
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