提交 0aabc0a5 编写于 作者: H Holger Schurig 提交者: David S. Miller

[PATCH] libertas: remove adapter->listeninterval

listeninterval was initialized with MRVDRV_DEFAULT_LISTEN_INTERVAL, but
there exists that would ever change it. So we can use this define directly.
Signed-off-by: NHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 956deb86
......@@ -287,7 +287,6 @@ struct _wlan_adapter {
u32 fragthsd;
u32 rtsthsd;
u16 listeninterval;
u8 txretrycount;
/** Tx-related variables (for single packet tx) */
......
......@@ -369,7 +369,7 @@ int libertas_cmd_80211_associate(wlan_private * priv,
pos += sizeof(passo->peerstaaddr);
/* set the listen interval */
passo->listeninterval = cpu_to_le16(adapter->listeninterval);
passo->listeninterval = cpu_to_le16(MRVDRV_DEFAULT_LISTEN_INTERVAL);
pos += sizeof(passo->capability);
pos += sizeof(passo->listeninterval);
......
......@@ -1051,8 +1051,6 @@ static void wlan_init_adapter(wlan_private * priv)
adapter->psmode = WLAN802_11POWERMODECAM;
adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL;
adapter->psstate = PS_STATE_FULL_POWER;
adapter->needtowakeup = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册