diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-28 13:06:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:10:17 -0500 |
commit | 430cfe95a401baa0dc2022deaad02cb75d63c73c (patch) | |
tree | 0c18939af7eabc563eaf69a8b47f79ecffbdc2c4 /drivers/net/wireless/iwlwifi | |
parent | e5704bf0ba4bb2ca54a1c74f6a6dca53dfccc33d (diff) |
iwl3945: remove dead code
Was wondering about this code since supposedly the firmware will
add the SSID element. Turns out it's dead, so remove it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index f675b2993a3d..431bebe76c2e 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -1593,7 +1593,7 @@ static u16 iwl3945_supported_rate_to_ie(u8 *ie, u16 supported_rate, | |||
1593 | */ | 1593 | */ |
1594 | static u16 iwl3945_fill_probe_req(struct iwl3945_priv *priv, | 1594 | static u16 iwl3945_fill_probe_req(struct iwl3945_priv *priv, |
1595 | struct ieee80211_mgmt *frame, | 1595 | struct ieee80211_mgmt *frame, |
1596 | int left, int is_direct) | 1596 | int left) |
1597 | { | 1597 | { |
1598 | int len = 0; | 1598 | int len = 0; |
1599 | u8 *pos = NULL; | 1599 | u8 *pos = NULL; |
@@ -1623,20 +1623,6 @@ static u16 iwl3945_fill_probe_req(struct iwl3945_priv *priv, | |||
1623 | *pos++ = WLAN_EID_SSID; | 1623 | *pos++ = WLAN_EID_SSID; |
1624 | *pos++ = 0; | 1624 | *pos++ = 0; |
1625 | 1625 | ||
1626 | /* fill in our direct SSID IE... */ | ||
1627 | if (is_direct) { | ||
1628 | /* ...next IE... */ | ||
1629 | left -= 2 + priv->essid_len; | ||
1630 | if (left < 0) | ||
1631 | return 0; | ||
1632 | /* ... fill it in... */ | ||
1633 | *pos++ = WLAN_EID_SSID; | ||
1634 | *pos++ = priv->essid_len; | ||
1635 | memcpy(pos, priv->essid, priv->essid_len); | ||
1636 | pos += priv->essid_len; | ||
1637 | len += 2 + priv->essid_len; | ||
1638 | } | ||
1639 | |||
1640 | /* fill in supported rate */ | 1626 | /* fill in supported rate */ |
1641 | /* ...next IE... */ | 1627 | /* ...next IE... */ |
1642 | left -= 2; | 1628 | left -= 2; |
@@ -6177,7 +6163,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
6177 | * that based on the direct_mask added to each channel entry */ | 6163 | * that based on the direct_mask added to each channel entry */ |
6178 | scan->tx_cmd.len = cpu_to_le16( | 6164 | scan->tx_cmd.len = cpu_to_le16( |
6179 | iwl3945_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data, | 6165 | iwl3945_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data, |
6180 | IWL_MAX_SCAN_SIZE - sizeof(*scan), 0)); | 6166 | IWL_MAX_SCAN_SIZE - sizeof(*scan))); |
6181 | scan->tx_cmd.tx_flags = TX_CMD_FLG_SEQ_CTL_MSK; | 6167 | scan->tx_cmd.tx_flags = TX_CMD_FLG_SEQ_CTL_MSK; |
6182 | scan->tx_cmd.sta_id = priv->hw_setting.bcast_sta_id; | 6168 | scan->tx_cmd.sta_id = priv->hw_setting.bcast_sta_id; |
6183 | scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; | 6169 | scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; |