diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-12-23 02:13:47 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 14:30:45 -0500 |
commit | 5bf0dac47fef5270bde3c20a734a3c69e51f9eff (patch) | |
tree | d5cd41c142e8079d54d390e0b114a1cd4ab5acb0 /drivers/net/wireless | |
parent | 280ade5ea9555208716131765cc194069eaf97d9 (diff) |
iwlegacy: 4965: remove one il4965_hdl_beacon
We have two such functions.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965.c | 19 |
2 files changed, 1 insertions, 21 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index cefc623f19ea..1667232af647 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -3780,13 +3780,12 @@ il4965_hdl_beacon(struct il_priv *il, struct il_rx_buf *rxb) | |||
3780 | #ifdef CONFIG_IWLEGACY_DEBUG | 3780 | #ifdef CONFIG_IWLEGACY_DEBUG |
3781 | u8 rate = il4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); | 3781 | u8 rate = il4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); |
3782 | 3782 | ||
3783 | D_RX("beacon status %x retries %d iss %d " "tsf %d %d rate %d\n", | 3783 | D_RX("beacon status %x retries %d iss %d tsf:0x%.8x%.8x rate %d\n", |
3784 | le32_to_cpu(beacon->beacon_notify_hdr.u.status) & TX_STATUS_MSK, | 3784 | le32_to_cpu(beacon->beacon_notify_hdr.u.status) & TX_STATUS_MSK, |
3785 | beacon->beacon_notify_hdr.failure_frame, | 3785 | beacon->beacon_notify_hdr.failure_frame, |
3786 | le32_to_cpu(beacon->ibss_mgr_status), | 3786 | le32_to_cpu(beacon->ibss_mgr_status), |
3787 | le32_to_cpu(beacon->high_tsf), le32_to_cpu(beacon->low_tsf), rate); | 3787 | le32_to_cpu(beacon->high_tsf), le32_to_cpu(beacon->low_tsf), rate); |
3788 | #endif | 3788 | #endif |
3789 | |||
3790 | il->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status); | 3789 | il->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status); |
3791 | } | 3790 | } |
3792 | 3791 | ||
diff --git a/drivers/net/wireless/iwlegacy/4965.c b/drivers/net/wireless/iwlegacy/4965.c index 84c54dccf195..cacbc03880b0 100644 --- a/drivers/net/wireless/iwlegacy/4965.c +++ b/drivers/net/wireless/iwlegacy/4965.c | |||
@@ -2114,24 +2114,6 @@ il4965_hdl_tx(struct il_priv *il, struct il_rx_buf *rxb) | |||
2114 | spin_unlock_irqrestore(&il->sta_lock, flags); | 2114 | spin_unlock_irqrestore(&il->sta_lock, flags); |
2115 | } | 2115 | } |
2116 | 2116 | ||
2117 | static void | ||
2118 | il4965_hdl_beacon(struct il_priv *il, struct il_rx_buf *rxb) | ||
2119 | { | ||
2120 | struct il_rx_pkt *pkt = rxb_addr(rxb); | ||
2121 | struct il4965_beacon_notif *beacon = (void *)pkt->u.raw; | ||
2122 | u8 rate __maybe_unused = | ||
2123 | il4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); | ||
2124 | |||
2125 | D_RX("beacon status %#x, retries:%d ibssmgr:%d " | ||
2126 | "tsf:0x%.8x%.8x rate:%d\n", | ||
2127 | le32_to_cpu(beacon->beacon_notify_hdr.u.status) & TX_STATUS_MSK, | ||
2128 | beacon->beacon_notify_hdr.failure_frame, | ||
2129 | le32_to_cpu(beacon->ibss_mgr_status), | ||
2130 | le32_to_cpu(beacon->high_tsf), le32_to_cpu(beacon->low_tsf), rate); | ||
2131 | |||
2132 | il->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status); | ||
2133 | } | ||
2134 | |||
2135 | /* Set up 4965-specific Rx frame reply handlers */ | 2117 | /* Set up 4965-specific Rx frame reply handlers */ |
2136 | static void | 2118 | static void |
2137 | il4965_handler_setup(struct il_priv *il) | 2119 | il4965_handler_setup(struct il_priv *il) |
@@ -2140,7 +2122,6 @@ il4965_handler_setup(struct il_priv *il) | |||
2140 | il->handlers[N_RX] = il4965_hdl_rx; | 2122 | il->handlers[N_RX] = il4965_hdl_rx; |
2141 | /* Tx response */ | 2123 | /* Tx response */ |
2142 | il->handlers[C_TX] = il4965_hdl_tx; | 2124 | il->handlers[C_TX] = il4965_hdl_tx; |
2143 | il->handlers[N_BEACON] = il4965_hdl_beacon; | ||
2144 | } | 2125 | } |
2145 | 2126 | ||
2146 | static struct il_hcmd_ops il4965_hcmd = { | 2127 | static struct il_hcmd_ops il4965_hcmd = { |