diff options
author | Jérôme Pouiller <jerome.pouiller@silabs.com> | 2020-04-10 15:32:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-13 14:42:51 +0200 |
commit | 790241e92847c93f1bd7772299e6c58fb8f185e8 (patch) | |
tree | dd19daff291a5b4f3fb7ae9b210d107c137d2a8e /drivers | |
parent | 239a1d3c646080a85d72ed2ffb2d26e703e5ef72 (diff) | |
download | linux-790241e92847c93f1bd7772299e6c58fb8f185e8.tar.bz2 |
staging: wfx: drop unused attribute 'beacon_int'
The field beacon_int is never read. Drop it.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200410133239.438347-19-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/wfx/sta.c | 5 | ||||
-rw-r--r-- | drivers/staging/wfx/wfx.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 91b4ce945598..53ab9648184a 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -478,10 +478,6 @@ static void wfx_do_join(struct wfx_vif *wvif) return; } - /* Sanity check beacon interval */ - if (!wvif->beacon_int) - wvif->beacon_int = 1; - rcu_read_lock(); // protect ssidie if (bss) ssidie = ieee80211_bss_get_ie(bss, WLAN_EID_SSID); @@ -611,7 +607,6 @@ static void wfx_join_finalize(struct wfx_vif *wvif, { struct ieee80211_sta *sta = NULL; - wvif->beacon_int = info->beacon_int; rcu_read_lock(); // protect sta if (info->bssid && !info->ibss_joined) sta = ieee80211_find_sta(wvif->vif, info->bssid); diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index 619e6f5c1345..41d67dc091a6 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -88,7 +88,6 @@ struct wfx_vif { struct work_struct update_tim_work; - int beacon_int; bool filter_bssid; bool fwd_probe_req; bool disable_beacon_filter; |