Skip to content

Commit

Permalink
[PATCH] libertas: remove adapter->atimwindow
Browse files Browse the repository at this point in the history
This varaible was initialized with 0 but there is no code that would ever
change it's value. So it can go away.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and David S. Miller committed Oct 10, 2007
1 parent 56c4656 commit ae596ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion drivers/net/wireless/libertas/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ struct _wlan_adapter {

/** POWER MANAGEMENT AND PnP SUPPORT */
u8 surpriseremoved;
u16 atimwindow;

u16 psmode; /* Wlan802_11PowermodeCAM=disable
Wlan802_11PowermodeMAX_PSP=enable */
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/join.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ int libertas_cmd_80211_ad_hoc_start(wlan_private * priv,

adhs->ssparamset.ibssparamset.elementid = IBSS_PARA_IE_ID;
adhs->ssparamset.ibssparamset.len = IBSS_PARA_IE_LEN;
adhs->ssparamset.ibssparamset.atimwindow = cpu_to_le16(adapter->atimwindow);
adhs->ssparamset.ibssparamset.atimwindow = 0;

/* set capability info */
tmpcap = WLAN_CAPABILITY_IBSS;
Expand Down
3 changes: 0 additions & 3 deletions drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,6 @@ static void wlan_init_adapter(wlan_private * priv)
wlan_adapter *adapter = priv->adapter;
int i;

/* ATIM params */
adapter->atimwindow = 0;

adapter->connect_status = LIBERTAS_DISCONNECTED;
memset(adapter->current_addr, 0xff, ETH_ALEN);

Expand Down

0 comments on commit ae596ce

Please sign in to comment.