diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-08-30 09:39:42 -0400 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 07:12:24 -0500 |
commit | d0c72347bece3299a90351151c69c0f721f964ff (patch) | |
tree | 12675e46502f8cadf5f30d0717d3656988495037 /drivers/net/wireless/iwlegacy | |
parent | 4d69c7521a90cba945b4720672b4511b1e541189 (diff) |
iwlegacy: s/rx_handler/handler/
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-mac.c | 42 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 48 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-core.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-debugfs.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-dev.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-scan.c | 8 |
9 files changed, 63 insertions, 63 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c index 65cab84661ef..fa5e03841015 100644 --- a/drivers/net/wireless/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/iwlegacy/3945-mac.c | |||
@@ -843,7 +843,7 @@ static void il3945_rx_card_state_notif(struct il_priv *il, | |||
843 | } | 843 | } |
844 | 844 | ||
845 | /** | 845 | /** |
846 | * il3945_setup_rx_handlers - Initialize Rx handler callbacks | 846 | * il3945_setup_handlers - Initialize Rx handler callbacks |
847 | * | 847 | * |
848 | * Setup the RX handlers for each of the reply types sent from the uCode | 848 | * Setup the RX handlers for each of the reply types sent from the uCode |
849 | * to the host. | 849 | * to the host. |
@@ -851,32 +851,32 @@ static void il3945_rx_card_state_notif(struct il_priv *il, | |||
851 | * This function chains into the hardware specific files for them to setup | 851 | * This function chains into the hardware specific files for them to setup |
852 | * any hardware specific handlers as well. | 852 | * any hardware specific handlers as well. |
853 | */ | 853 | */ |
854 | static void il3945_setup_rx_handlers(struct il_priv *il) | 854 | static void il3945_setup_handlers(struct il_priv *il) |
855 | { | 855 | { |
856 | il->rx_handlers[N_ALIVE] = il3945_rx_reply_alive; | 856 | il->handlers[N_ALIVE] = il3945_rx_reply_alive; |
857 | il->rx_handlers[C_ADD_STA] = il3945_rx_reply_add_sta; | 857 | il->handlers[C_ADD_STA] = il3945_rx_reply_add_sta; |
858 | il->rx_handlers[N_ERROR] = il_rx_reply_error; | 858 | il->handlers[N_ERROR] = il_rx_reply_error; |
859 | il->rx_handlers[N_CHANNEL_SWITCH] = il_rx_csa; | 859 | il->handlers[N_CHANNEL_SWITCH] = il_rx_csa; |
860 | il->rx_handlers[N_SPECTRUM_MEASUREMENT] = | 860 | il->handlers[N_SPECTRUM_MEASUREMENT] = |
861 | il_rx_spectrum_measure_notif; | 861 | il_rx_spectrum_measure_notif; |
862 | il->rx_handlers[N_PM_SLEEP] = il_rx_pm_sleep_notif; | 862 | il->handlers[N_PM_SLEEP] = il_rx_pm_sleep_notif; |
863 | il->rx_handlers[N_PM_DEBUG_STATS] = | 863 | il->handlers[N_PM_DEBUG_STATS] = |
864 | il_rx_pm_debug_stats_notif; | 864 | il_rx_pm_debug_stats_notif; |
865 | il->rx_handlers[N_BEACON] = il3945_rx_beacon_notif; | 865 | il->handlers[N_BEACON] = il3945_rx_beacon_notif; |
866 | 866 | ||
867 | /* | 867 | /* |
868 | * The same handler is used for both the REPLY to a discrete | 868 | * The same handler is used for both the REPLY to a discrete |
869 | * stats request from the host as well as for the periodic | 869 | * stats request from the host as well as for the periodic |
870 | * stats notifications (after received beacons) from the uCode. | 870 | * stats notifications (after received beacons) from the uCode. |
871 | */ | 871 | */ |
872 | il->rx_handlers[C_STATS] = il3945_reply_stats; | 872 | il->handlers[C_STATS] = il3945_reply_stats; |
873 | il->rx_handlers[N_STATS] = il3945_hw_rx_stats; | 873 | il->handlers[N_STATS] = il3945_hw_rx_stats; |
874 | 874 | ||
875 | il_setup_rx_scan_handlers(il); | 875 | il_setup_rx_scan_handlers(il); |
876 | il->rx_handlers[N_CARD_STATE] = il3945_rx_card_state_notif; | 876 | il->handlers[N_CARD_STATE] = il3945_rx_card_state_notif; |
877 | 877 | ||
878 | /* Set up hardware specific Rx handlers */ | 878 | /* Set up hardware specific Rx handlers */ |
879 | il3945_hw_rx_handler_setup(il); | 879 | il3945_hw_handler_setup(il); |
880 | } | 880 | } |
881 | 881 | ||
882 | /************************** RX-FUNCTIONS ****************************/ | 882 | /************************** RX-FUNCTIONS ****************************/ |
@@ -1194,7 +1194,7 @@ int il3945_calc_db_from_ratio(int sig_ratio) | |||
1194 | /** | 1194 | /** |
1195 | * il3945_rx_handle - Main entry function for receiving responses from uCode | 1195 | * il3945_rx_handle - Main entry function for receiving responses from uCode |
1196 | * | 1196 | * |
1197 | * Uses the il->rx_handlers callback function array to invoke | 1197 | * Uses the il->handlers callback function array to invoke |
1198 | * the appropriate handlers, including command responses, | 1198 | * the appropriate handlers, including command responses, |
1199 | * frame-received notifications, and other notifications. | 1199 | * frame-received notifications, and other notifications. |
1200 | */ | 1200 | */ |
@@ -1258,12 +1258,12 @@ static void il3945_rx_handle(struct il_priv *il) | |||
1258 | 1258 | ||
1259 | /* Based on type of command response or notification, | 1259 | /* Based on type of command response or notification, |
1260 | * handle those that need handling via function in | 1260 | * handle those that need handling via function in |
1261 | * rx_handlers table. See il3945_setup_rx_handlers() */ | 1261 | * handlers table. See il3945_setup_handlers() */ |
1262 | if (il->rx_handlers[pkt->hdr.cmd]) { | 1262 | if (il->handlers[pkt->hdr.cmd]) { |
1263 | D_RX("r = %d, i = %d, %s, 0x%02x\n", r, i, | 1263 | D_RX("r = %d, i = %d, %s, 0x%02x\n", r, i, |
1264 | il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd); | 1264 | il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd); |
1265 | il->isr_stats.rx_handlers[pkt->hdr.cmd]++; | 1265 | il->isr_stats.handlers[pkt->hdr.cmd]++; |
1266 | il->rx_handlers[pkt->hdr.cmd] (il, rxb); | 1266 | il->handlers[pkt->hdr.cmd] (il, rxb); |
1267 | } else { | 1267 | } else { |
1268 | /* No handling needed */ | 1268 | /* No handling needed */ |
1269 | D_RX( | 1269 | D_RX( |
@@ -1275,7 +1275,7 @@ static void il3945_rx_handle(struct il_priv *il) | |||
1275 | /* | 1275 | /* |
1276 | * XXX: After here, we should always check rxb->page | 1276 | * XXX: After here, we should always check rxb->page |
1277 | * against NULL before touching it or its virtual | 1277 | * against NULL before touching it or its virtual |
1278 | * memory (pkt). Because some rx_handler might have | 1278 | * memory (pkt). Because some handler might have |
1279 | * already taken or freed the pages. | 1279 | * already taken or freed the pages. |
1280 | */ | 1280 | */ |
1281 | 1281 | ||
@@ -3807,7 +3807,7 @@ static int il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *en | |||
3807 | &il->bands[IEEE80211_BAND_2GHZ].channels[5], | 3807 | &il->bands[IEEE80211_BAND_2GHZ].channels[5], |
3808 | &il->ctx); | 3808 | &il->ctx); |
3809 | il3945_setup_deferred_work(il); | 3809 | il3945_setup_deferred_work(il); |
3810 | il3945_setup_rx_handlers(il); | 3810 | il3945_setup_handlers(il); |
3811 | il_power_initialize(il); | 3811 | il_power_initialize(il); |
3812 | 3812 | ||
3813 | /********************************* | 3813 | /********************************* |
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c index ba250f7e8fb3..94d540c22e13 100644 --- a/drivers/net/wireless/iwlegacy/3945.c +++ b/drivers/net/wireless/iwlegacy/3945.c | |||
@@ -2462,10 +2462,10 @@ unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il, | |||
2462 | return sizeof(struct il3945_tx_beacon_cmd) + frame_size; | 2462 | return sizeof(struct il3945_tx_beacon_cmd) + frame_size; |
2463 | } | 2463 | } |
2464 | 2464 | ||
2465 | void il3945_hw_rx_handler_setup(struct il_priv *il) | 2465 | void il3945_hw_handler_setup(struct il_priv *il) |
2466 | { | 2466 | { |
2467 | il->rx_handlers[C_TX] = il3945_rx_reply_tx; | 2467 | il->handlers[C_TX] = il3945_rx_reply_tx; |
2468 | il->rx_handlers[N_3945_RX] = il3945_rx_reply_rx; | 2468 | il->handlers[N_3945_RX] = il3945_rx_reply_rx; |
2469 | } | 2469 | } |
2470 | 2470 | ||
2471 | void il3945_hw_setup_deferred_work(struct il_priv *il) | 2471 | void il3945_hw_setup_deferred_work(struct il_priv *il) |
diff --git a/drivers/net/wireless/iwlegacy/3945.h b/drivers/net/wireless/iwlegacy/3945.h index d65565f7c871..6000aff4798c 100644 --- a/drivers/net/wireless/iwlegacy/3945.h +++ b/drivers/net/wireless/iwlegacy/3945.h | |||
@@ -225,7 +225,7 @@ extern void il3945_dump_nic_error_log(struct il_priv *il); | |||
225 | * il3945_mac_ <-- mac80211 callback | 225 | * il3945_mac_ <-- mac80211 callback |
226 | * | 226 | * |
227 | ****************************************************************************/ | 227 | ****************************************************************************/ |
228 | extern void il3945_hw_rx_handler_setup(struct il_priv *il); | 228 | extern void il3945_hw_handler_setup(struct il_priv *il); |
229 | extern void il3945_hw_setup_deferred_work(struct il_priv *il); | 229 | extern void il3945_hw_setup_deferred_work(struct il_priv *il); |
230 | extern void il3945_hw_cancel_deferred_work(struct il_priv *il); | 230 | extern void il3945_hw_cancel_deferred_work(struct il_priv *il); |
231 | extern int il3945_hw_rxq_stop(struct il_priv *il); | 231 | extern int il3945_hw_rxq_stop(struct il_priv *il); |
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index 098d86397d91..d82d05fa8515 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -3911,7 +3911,7 @@ static void il4965_rx_card_state_notif(struct il_priv *il, | |||
3911 | } | 3911 | } |
3912 | 3912 | ||
3913 | /** | 3913 | /** |
3914 | * il4965_setup_rx_handlers - Initialize Rx handler callbacks | 3914 | * il4965_setup_handlers - Initialize Rx handler callbacks |
3915 | * | 3915 | * |
3916 | * Setup the RX handlers for each of the reply types sent from the uCode | 3916 | * Setup the RX handlers for each of the reply types sent from the uCode |
3917 | * to the host. | 3917 | * to the host. |
@@ -3919,47 +3919,47 @@ static void il4965_rx_card_state_notif(struct il_priv *il, | |||
3919 | * This function chains into the hardware specific files for them to setup | 3919 | * This function chains into the hardware specific files for them to setup |
3920 | * any hardware specific handlers as well. | 3920 | * any hardware specific handlers as well. |
3921 | */ | 3921 | */ |
3922 | static void il4965_setup_rx_handlers(struct il_priv *il) | 3922 | static void il4965_setup_handlers(struct il_priv *il) |
3923 | { | 3923 | { |
3924 | il->rx_handlers[N_ALIVE] = il4965_rx_reply_alive; | 3924 | il->handlers[N_ALIVE] = il4965_rx_reply_alive; |
3925 | il->rx_handlers[N_ERROR] = il_rx_reply_error; | 3925 | il->handlers[N_ERROR] = il_rx_reply_error; |
3926 | il->rx_handlers[N_CHANNEL_SWITCH] = il_rx_csa; | 3926 | il->handlers[N_CHANNEL_SWITCH] = il_rx_csa; |
3927 | il->rx_handlers[N_SPECTRUM_MEASUREMENT] = | 3927 | il->handlers[N_SPECTRUM_MEASUREMENT] = |
3928 | il_rx_spectrum_measure_notif; | 3928 | il_rx_spectrum_measure_notif; |
3929 | il->rx_handlers[N_PM_SLEEP] = il_rx_pm_sleep_notif; | 3929 | il->handlers[N_PM_SLEEP] = il_rx_pm_sleep_notif; |
3930 | il->rx_handlers[N_PM_DEBUG_STATS] = | 3930 | il->handlers[N_PM_DEBUG_STATS] = |
3931 | il_rx_pm_debug_stats_notif; | 3931 | il_rx_pm_debug_stats_notif; |
3932 | il->rx_handlers[N_BEACON] = il4965_rx_beacon_notif; | 3932 | il->handlers[N_BEACON] = il4965_rx_beacon_notif; |
3933 | 3933 | ||
3934 | /* | 3934 | /* |
3935 | * The same handler is used for both the REPLY to a discrete | 3935 | * The same handler is used for both the REPLY to a discrete |
3936 | * stats request from the host as well as for the periodic | 3936 | * stats request from the host as well as for the periodic |
3937 | * stats notifications (after received beacons) from the uCode. | 3937 | * stats notifications (after received beacons) from the uCode. |
3938 | */ | 3938 | */ |
3939 | il->rx_handlers[C_STATS] = il4965_reply_stats; | 3939 | il->handlers[C_STATS] = il4965_reply_stats; |
3940 | il->rx_handlers[N_STATS] = il4965_rx_stats; | 3940 | il->handlers[N_STATS] = il4965_rx_stats; |
3941 | 3941 | ||
3942 | il_setup_rx_scan_handlers(il); | 3942 | il_setup_rx_scan_handlers(il); |
3943 | 3943 | ||
3944 | /* status change handler */ | 3944 | /* status change handler */ |
3945 | il->rx_handlers[N_CARD_STATE] = | 3945 | il->handlers[N_CARD_STATE] = |
3946 | il4965_rx_card_state_notif; | 3946 | il4965_rx_card_state_notif; |
3947 | 3947 | ||
3948 | il->rx_handlers[N_MISSED_BEACONS] = | 3948 | il->handlers[N_MISSED_BEACONS] = |
3949 | il4965_rx_missed_beacon_notif; | 3949 | il4965_rx_missed_beacon_notif; |
3950 | /* Rx handlers */ | 3950 | /* Rx handlers */ |
3951 | il->rx_handlers[N_RX_PHY] = il4965_rx_reply_rx_phy; | 3951 | il->handlers[N_RX_PHY] = il4965_rx_reply_rx_phy; |
3952 | il->rx_handlers[N_RX_MPDU] = il4965_rx_reply_rx; | 3952 | il->handlers[N_RX_MPDU] = il4965_rx_reply_rx; |
3953 | /* block ack */ | 3953 | /* block ack */ |
3954 | il->rx_handlers[N_COMPRESSED_BA] = il4965_rx_reply_compressed_ba; | 3954 | il->handlers[N_COMPRESSED_BA] = il4965_rx_reply_compressed_ba; |
3955 | /* Set up hardware specific Rx handlers */ | 3955 | /* Set up hardware specific Rx handlers */ |
3956 | il->cfg->ops->lib->rx_handler_setup(il); | 3956 | il->cfg->ops->lib->handler_setup(il); |
3957 | } | 3957 | } |
3958 | 3958 | ||
3959 | /** | 3959 | /** |
3960 | * il4965_rx_handle - Main entry function for receiving responses from uCode | 3960 | * il4965_rx_handle - Main entry function for receiving responses from uCode |
3961 | * | 3961 | * |
3962 | * Uses the il->rx_handlers callback function array to invoke | 3962 | * Uses the il->handlers callback function array to invoke |
3963 | * the appropriate handlers, including command responses, | 3963 | * the appropriate handlers, including command responses, |
3964 | * frame-received notifications, and other notifications. | 3964 | * frame-received notifications, and other notifications. |
3965 | */ | 3965 | */ |
@@ -4028,13 +4028,13 @@ void il4965_rx_handle(struct il_priv *il) | |||
4028 | 4028 | ||
4029 | /* Based on type of command response or notification, | 4029 | /* Based on type of command response or notification, |
4030 | * handle those that need handling via function in | 4030 | * handle those that need handling via function in |
4031 | * rx_handlers table. See il4965_setup_rx_handlers() */ | 4031 | * handlers table. See il4965_setup_handlers() */ |
4032 | if (il->rx_handlers[pkt->hdr.cmd]) { | 4032 | if (il->handlers[pkt->hdr.cmd]) { |
4033 | D_RX("r = %d, i = %d, %s, 0x%02x\n", r, | 4033 | D_RX("r = %d, i = %d, %s, 0x%02x\n", r, |
4034 | i, il_get_cmd_string(pkt->hdr.cmd), | 4034 | i, il_get_cmd_string(pkt->hdr.cmd), |
4035 | pkt->hdr.cmd); | 4035 | pkt->hdr.cmd); |
4036 | il->isr_stats.rx_handlers[pkt->hdr.cmd]++; | 4036 | il->isr_stats.handlers[pkt->hdr.cmd]++; |
4037 | il->rx_handlers[pkt->hdr.cmd] (il, rxb); | 4037 | il->handlers[pkt->hdr.cmd] (il, rxb); |
4038 | } else { | 4038 | } else { |
4039 | /* No handling needed */ | 4039 | /* No handling needed */ |
4040 | D_RX( | 4040 | D_RX( |
@@ -4046,7 +4046,7 @@ void il4965_rx_handle(struct il_priv *il) | |||
4046 | /* | 4046 | /* |
4047 | * XXX: After here, we should always check rxb->page | 4047 | * XXX: After here, we should always check rxb->page |
4048 | * against NULL before touching it or its virtual | 4048 | * against NULL before touching it or its virtual |
4049 | * memory (pkt). Because some rx_handler might have | 4049 | * memory (pkt). Because some handler might have |
4050 | * already taken or freed the pages. | 4050 | * already taken or freed the pages. |
4051 | */ | 4051 | */ |
4052 | 4052 | ||
@@ -6358,7 +6358,7 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6358 | } | 6358 | } |
6359 | 6359 | ||
6360 | il4965_setup_deferred_work(il); | 6360 | il4965_setup_deferred_work(il); |
6361 | il4965_setup_rx_handlers(il); | 6361 | il4965_setup_handlers(il); |
6362 | 6362 | ||
6363 | /********************************************* | 6363 | /********************************************* |
6364 | * 8. Enable interrupts and read RFKILL state | 6364 | * 8. Enable interrupts and read RFKILL state |
diff --git a/drivers/net/wireless/iwlegacy/4965.c b/drivers/net/wireless/iwlegacy/4965.c index 3b101c142171..f48cb89deab7 100644 --- a/drivers/net/wireless/iwlegacy/4965.c +++ b/drivers/net/wireless/iwlegacy/4965.c | |||
@@ -2142,13 +2142,13 @@ static void il4965_rx_beacon_notif(struct il_priv *il, | |||
2142 | } | 2142 | } |
2143 | 2143 | ||
2144 | /* Set up 4965-specific Rx frame reply handlers */ | 2144 | /* Set up 4965-specific Rx frame reply handlers */ |
2145 | static void il4965_rx_handler_setup(struct il_priv *il) | 2145 | static void il4965_handler_setup(struct il_priv *il) |
2146 | { | 2146 | { |
2147 | /* Legacy Rx frames */ | 2147 | /* Legacy Rx frames */ |
2148 | il->rx_handlers[N_RX] = il4965_rx_reply_rx; | 2148 | il->handlers[N_RX] = il4965_rx_reply_rx; |
2149 | /* Tx response */ | 2149 | /* Tx response */ |
2150 | il->rx_handlers[C_TX] = il4965_rx_reply_tx; | 2150 | il->handlers[C_TX] = il4965_rx_reply_tx; |
2151 | il->rx_handlers[N_BEACON] = il4965_rx_beacon_notif; | 2151 | il->handlers[N_BEACON] = il4965_rx_beacon_notif; |
2152 | } | 2152 | } |
2153 | 2153 | ||
2154 | static struct il_hcmd_ops il4965_hcmd = { | 2154 | static struct il_hcmd_ops il4965_hcmd = { |
@@ -2316,7 +2316,7 @@ static struct il_lib_ops il4965_lib = { | |||
2316 | .txq_attach_buf_to_tfd = il4965_hw_txq_attach_buf_to_tfd, | 2316 | .txq_attach_buf_to_tfd = il4965_hw_txq_attach_buf_to_tfd, |
2317 | .txq_free_tfd = il4965_hw_txq_free_tfd, | 2317 | .txq_free_tfd = il4965_hw_txq_free_tfd, |
2318 | .txq_init = il4965_hw_tx_queue_init, | 2318 | .txq_init = il4965_hw_tx_queue_init, |
2319 | .rx_handler_setup = il4965_rx_handler_setup, | 2319 | .handler_setup = il4965_handler_setup, |
2320 | .is_valid_rtc_data_addr = il4965_hw_valid_rtc_data_addr, | 2320 | .is_valid_rtc_data_addr = il4965_hw_valid_rtc_data_addr, |
2321 | .init_alive_start = il4965_init_alive_start, | 2321 | .init_alive_start = il4965_init_alive_start, |
2322 | .load_ucode = il4965_load_bsm, | 2322 | .load_ucode = il4965_load_bsm, |
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.h b/drivers/net/wireless/iwlegacy/iwl-core.h index e275ffc9f7e0..a3701a6c8632 100644 --- a/drivers/net/wireless/iwlegacy/iwl-core.h +++ b/drivers/net/wireless/iwlegacy/iwl-core.h | |||
@@ -136,7 +136,7 @@ struct il_lib_ops { | |||
136 | int (*txq_init)(struct il_priv *il, | 136 | int (*txq_init)(struct il_priv *il, |
137 | struct il_tx_queue *txq); | 137 | struct il_tx_queue *txq); |
138 | /* setup Rx handler */ | 138 | /* setup Rx handler */ |
139 | void (*rx_handler_setup)(struct il_priv *il); | 139 | void (*handler_setup)(struct il_priv *il); |
140 | /* alive notification after init uCode load */ | 140 | /* alive notification after init uCode load */ |
141 | void (*init_alive_start)(struct il_priv *il); | 141 | void (*init_alive_start)(struct il_priv *il); |
142 | /* check validity of rtc data address */ | 142 | /* check validity of rtc data address */ |
diff --git a/drivers/net/wireless/iwlegacy/iwl-debugfs.c b/drivers/net/wireless/iwlegacy/iwl-debugfs.c index 4076b79e593e..3f6b06e99d2f 100644 --- a/drivers/net/wireless/iwlegacy/iwl-debugfs.c +++ b/drivers/net/wireless/iwlegacy/iwl-debugfs.c | |||
@@ -555,11 +555,11 @@ static ssize_t il_dbgfs_interrupt_read(struct file *file, | |||
555 | "Rx command responses:\t\t %u\n", | 555 | "Rx command responses:\t\t %u\n", |
556 | il->isr_stats.rx); | 556 | il->isr_stats.rx); |
557 | for (cnt = 0; cnt < IL_CN_MAX; cnt++) { | 557 | for (cnt = 0; cnt < IL_CN_MAX; cnt++) { |
558 | if (il->isr_stats.rx_handlers[cnt] > 0) | 558 | if (il->isr_stats.handlers[cnt] > 0) |
559 | pos += scnprintf(buf + pos, bufsz - pos, | 559 | pos += scnprintf(buf + pos, bufsz - pos, |
560 | "\tRx handler[%36s]:\t\t %u\n", | 560 | "\tRx handler[%36s]:\t\t %u\n", |
561 | il_get_cmd_string(cnt), | 561 | il_get_cmd_string(cnt), |
562 | il->isr_stats.rx_handlers[cnt]); | 562 | il->isr_stats.handlers[cnt]); |
563 | } | 563 | } |
564 | 564 | ||
565 | pos += scnprintf(buf + pos, bufsz - pos, "Tx/FH interrupt:\t\t %u\n", | 565 | pos += scnprintf(buf + pos, bufsz - pos, "Tx/FH interrupt:\t\t %u\n", |
diff --git a/drivers/net/wireless/iwlegacy/iwl-dev.h b/drivers/net/wireless/iwlegacy/iwl-dev.h index 1bc4a71ac00f..2ebd807ee16e 100644 --- a/drivers/net/wireless/iwlegacy/iwl-dev.h +++ b/drivers/net/wireless/iwlegacy/iwl-dev.h | |||
@@ -813,7 +813,7 @@ struct isr_stats { | |||
813 | u32 ctkill; | 813 | u32 ctkill; |
814 | u32 wakeup; | 814 | u32 wakeup; |
815 | u32 rx; | 815 | u32 rx; |
816 | u32 rx_handlers[IL_CN_MAX]; | 816 | u32 handlers[IL_CN_MAX]; |
817 | u32 tx; | 817 | u32 tx; |
818 | u32 unhandled; | 818 | u32 unhandled; |
819 | }; | 819 | }; |
@@ -968,7 +968,7 @@ struct il_priv { | |||
968 | enum ieee80211_band band; | 968 | enum ieee80211_band band; |
969 | int alloc_rxb_page; | 969 | int alloc_rxb_page; |
970 | 970 | ||
971 | void (*rx_handlers[IL_CN_MAX])(struct il_priv *il, | 971 | void (*handlers[IL_CN_MAX])(struct il_priv *il, |
972 | struct il_rx_buf *rxb); | 972 | struct il_rx_buf *rxb); |
973 | 973 | ||
974 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; | 974 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; |
diff --git a/drivers/net/wireless/iwlegacy/iwl-scan.c b/drivers/net/wireless/iwlegacy/iwl-scan.c index 1f81d56ad8ac..2bed3ae914c2 100644 --- a/drivers/net/wireless/iwlegacy/iwl-scan.c +++ b/drivers/net/wireless/iwlegacy/iwl-scan.c | |||
@@ -263,12 +263,12 @@ static void il_rx_scan_complete_notif(struct il_priv *il, | |||
263 | void il_setup_rx_scan_handlers(struct il_priv *il) | 263 | void il_setup_rx_scan_handlers(struct il_priv *il) |
264 | { | 264 | { |
265 | /* scan handlers */ | 265 | /* scan handlers */ |
266 | il->rx_handlers[C_SCAN] = il_rx_reply_scan; | 266 | il->handlers[C_SCAN] = il_rx_reply_scan; |
267 | il->rx_handlers[N_SCAN_START] = | 267 | il->handlers[N_SCAN_START] = |
268 | il_rx_scan_start_notif; | 268 | il_rx_scan_start_notif; |
269 | il->rx_handlers[N_SCAN_RESULTS] = | 269 | il->handlers[N_SCAN_RESULTS] = |
270 | il_rx_scan_results_notif; | 270 | il_rx_scan_results_notif; |
271 | il->rx_handlers[N_SCAN_COMPLETE] = | 271 | il->handlers[N_SCAN_COMPLETE] = |
272 | il_rx_scan_complete_notif; | 272 | il_rx_scan_complete_notif; |
273 | } | 273 | } |
274 | EXPORT_SYMBOL(il_setup_rx_scan_handlers); | 274 | EXPORT_SYMBOL(il_setup_rx_scan_handlers); |