Skip to contentSkip to conversation

libertas: remove adapter->beaconperiod

PATCH New Holger Schurig 1 participant 1 message Jul 3, 2007 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libertas: remove adapter->beaconperiod

beaconperiod was initialized with MRVDRV_BEACON_INTERVAL, but there is no code that would ever change it's value. We can use the define directly.

---
 drivers/net/wireless/libertas/dev.h  |    1 -
 drivers/net/wireless/libertas/join.c |    2 +-
 drivers/net/wireless/libertas/main.c |    2 --
 3 files changed, 1 insertions(+), 4 deletions(-)
drivers/net/wireless/libertas/dev.h +0 -1
index eef6a72..1b42fad 100644
@@ -265,7 +265,6 @@ struct _wlan_adapter {
 	u8 scantype;
 	u32 scanmode;
 
-	u16 beaconperiod;
 	u8 adhoccreate;
 
 	/** capability Info used in Association, start, join */
drivers/net/wireless/libertas/join.c +1 -1
index 95c21ba..c16d1f6 100644
@@ -496,7 +496,7 @@ int libertas_cmd_80211_ad_hoc_start(wlan_private * priv,
 	/* set the BSS type */
 	adhs->bsstype = CMD_BSS_TYPE_IBSS;
 	adapter->mode = IW_MODE_ADHOC;
-	adhs->beaconperiod = cpu_to_le16(adapter->beaconperiod);
+	adhs->beaconperiod = cpu_to_le16(MRVDRV_BEACON_INTERVAL);
 
 	/* set Physical param set */
 #define DS_PARA_IE_ID   3
drivers/net/wireless/libertas/main.c +0 -2
index 6882a7d..68aa9bc 100644
@@ -1037,8 +1037,6 @@ static void wlan_init_adapter(wlan_private * priv)
 	adapter->auto_rate = 1;
 	adapter->cur_rate = 0;
 
-	adapter->beaconperiod = MRVDRV_BEACON_INTERVAL;
-
 	// set default capabilities
 	adapter->capability = WLAN_CAPABILITY_SHORT_PREAMBLE;
 
Signature · 1 line
1.5.2.1