Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d0c72347
Commit
d0c72347
authored
Aug 30, 2011
by
Stanislaw Gruszka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iwlegacy: s/rx_handler/handler/
Signed-off-by:
Stanislaw Gruszka
<
sgruszka@redhat.com
>
parent
4d69c752
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
63 additions
and
63 deletions
+63
-63
drivers/net/wireless/iwlegacy/3945-mac.c
drivers/net/wireless/iwlegacy/3945-mac.c
+21
-21
drivers/net/wireless/iwlegacy/3945.c
drivers/net/wireless/iwlegacy/3945.c
+3
-3
drivers/net/wireless/iwlegacy/3945.h
drivers/net/wireless/iwlegacy/3945.h
+1
-1
drivers/net/wireless/iwlegacy/4965-mac.c
drivers/net/wireless/iwlegacy/4965-mac.c
+24
-24
drivers/net/wireless/iwlegacy/4965.c
drivers/net/wireless/iwlegacy/4965.c
+5
-5
drivers/net/wireless/iwlegacy/iwl-core.h
drivers/net/wireless/iwlegacy/iwl-core.h
+1
-1
drivers/net/wireless/iwlegacy/iwl-debugfs.c
drivers/net/wireless/iwlegacy/iwl-debugfs.c
+2
-2
drivers/net/wireless/iwlegacy/iwl-dev.h
drivers/net/wireless/iwlegacy/iwl-dev.h
+2
-2
drivers/net/wireless/iwlegacy/iwl-scan.c
drivers/net/wireless/iwlegacy/iwl-scan.c
+4
-4
No files found.
drivers/net/wireless/iwlegacy/3945-mac.c
View file @
d0c72347
...
@@ -843,7 +843,7 @@ static void il3945_rx_card_state_notif(struct il_priv *il,
...
@@ -843,7 +843,7 @@ static void il3945_rx_card_state_notif(struct il_priv *il,
}
}
/**
/**
* il3945_setup_
rx_
handlers - Initialize Rx handler callbacks
* il3945_setup_handlers - Initialize Rx handler callbacks
*
*
* Setup the RX handlers for each of the reply types sent from the uCode
* Setup the RX handlers for each of the reply types sent from the uCode
* to the host.
* to the host.
...
@@ -851,32 +851,32 @@ static void il3945_rx_card_state_notif(struct il_priv *il,
...
@@ -851,32 +851,32 @@ static void il3945_rx_card_state_notif(struct il_priv *il,
* This function chains into the hardware specific files for them to setup
* This function chains into the hardware specific files for them to setup
* any hardware specific handlers as well.
* any hardware specific handlers as well.
*/
*/
static
void
il3945_setup_
rx_
handlers
(
struct
il_priv
*
il
)
static
void
il3945_setup_handlers
(
struct
il_priv
*
il
)
{
{
il
->
rx_
handlers
[
N_ALIVE
]
=
il3945_rx_reply_alive
;
il
->
handlers
[
N_ALIVE
]
=
il3945_rx_reply_alive
;
il
->
rx_
handlers
[
C_ADD_STA
]
=
il3945_rx_reply_add_sta
;
il
->
handlers
[
C_ADD_STA
]
=
il3945_rx_reply_add_sta
;
il
->
rx_
handlers
[
N_ERROR
]
=
il_rx_reply_error
;
il
->
handlers
[
N_ERROR
]
=
il_rx_reply_error
;
il
->
rx_
handlers
[
N_CHANNEL_SWITCH
]
=
il_rx_csa
;
il
->
handlers
[
N_CHANNEL_SWITCH
]
=
il_rx_csa
;
il
->
rx_
handlers
[
N_SPECTRUM_MEASUREMENT
]
=
il
->
handlers
[
N_SPECTRUM_MEASUREMENT
]
=
il_rx_spectrum_measure_notif
;
il_rx_spectrum_measure_notif
;
il
->
rx_
handlers
[
N_PM_SLEEP
]
=
il_rx_pm_sleep_notif
;
il
->
handlers
[
N_PM_SLEEP
]
=
il_rx_pm_sleep_notif
;
il
->
rx_
handlers
[
N_PM_DEBUG_STATS
]
=
il
->
handlers
[
N_PM_DEBUG_STATS
]
=
il_rx_pm_debug_stats_notif
;
il_rx_pm_debug_stats_notif
;
il
->
rx_
handlers
[
N_BEACON
]
=
il3945_rx_beacon_notif
;
il
->
handlers
[
N_BEACON
]
=
il3945_rx_beacon_notif
;
/*
/*
* The same handler is used for both the REPLY to a discrete
* The same handler is used for both the REPLY to a discrete
* stats request from the host as well as for the periodic
* stats request from the host as well as for the periodic
* stats notifications (after received beacons) from the uCode.
* stats notifications (after received beacons) from the uCode.
*/
*/
il
->
rx_
handlers
[
C_STATS
]
=
il3945_reply_stats
;
il
->
handlers
[
C_STATS
]
=
il3945_reply_stats
;
il
->
rx_
handlers
[
N_STATS
]
=
il3945_hw_rx_stats
;
il
->
handlers
[
N_STATS
]
=
il3945_hw_rx_stats
;
il_setup_rx_scan_handlers
(
il
);
il_setup_rx_scan_handlers
(
il
);
il
->
rx_
handlers
[
N_CARD_STATE
]
=
il3945_rx_card_state_notif
;
il
->
handlers
[
N_CARD_STATE
]
=
il3945_rx_card_state_notif
;
/* Set up hardware specific Rx handlers */
/* Set up hardware specific Rx handlers */
il3945_hw_
rx_
handler_setup
(
il
);
il3945_hw_handler_setup
(
il
);
}
}
/************************** RX-FUNCTIONS ****************************/
/************************** RX-FUNCTIONS ****************************/
...
@@ -1194,7 +1194,7 @@ int il3945_calc_db_from_ratio(int sig_ratio)
...
@@ -1194,7 +1194,7 @@ int il3945_calc_db_from_ratio(int sig_ratio)
/**
/**
* il3945_rx_handle - Main entry function for receiving responses from uCode
* il3945_rx_handle - Main entry function for receiving responses from uCode
*
*
* Uses the il->
rx_
handlers callback function array to invoke
* Uses the il->handlers callback function array to invoke
* the appropriate handlers, including command responses,
* the appropriate handlers, including command responses,
* frame-received notifications, and other notifications.
* frame-received notifications, and other notifications.
*/
*/
...
@@ -1258,12 +1258,12 @@ static void il3945_rx_handle(struct il_priv *il)
...
@@ -1258,12 +1258,12 @@ static void il3945_rx_handle(struct il_priv *il)
/* Based on type of command response or notification,
/* Based on type of command response or notification,
* handle those that need handling via function in
* handle those that need handling via function in
*
rx_handlers table. See il3945_setup_rx
_handlers() */
*
handlers table. See il3945_setup
_handlers() */
if
(
il
->
rx_
handlers
[
pkt
->
hdr
.
cmd
])
{
if
(
il
->
handlers
[
pkt
->
hdr
.
cmd
])
{
D_RX
(
"r = %d, i = %d, %s, 0x%02x
\n
"
,
r
,
i
,
D_RX
(
"r = %d, i = %d, %s, 0x%02x
\n
"
,
r
,
i
,
il_get_cmd_string
(
pkt
->
hdr
.
cmd
),
pkt
->
hdr
.
cmd
);
il_get_cmd_string
(
pkt
->
hdr
.
cmd
),
pkt
->
hdr
.
cmd
);
il
->
isr_stats
.
rx_
handlers
[
pkt
->
hdr
.
cmd
]
++
;
il
->
isr_stats
.
handlers
[
pkt
->
hdr
.
cmd
]
++
;
il
->
rx_
handlers
[
pkt
->
hdr
.
cmd
]
(
il
,
rxb
);
il
->
handlers
[
pkt
->
hdr
.
cmd
]
(
il
,
rxb
);
}
else
{
}
else
{
/* No handling needed */
/* No handling needed */
D_RX
(
D_RX
(
...
@@ -1275,7 +1275,7 @@ static void il3945_rx_handle(struct il_priv *il)
...
@@ -1275,7 +1275,7 @@ static void il3945_rx_handle(struct il_priv *il)
/*
/*
* XXX: After here, we should always check rxb->page
* XXX: After here, we should always check rxb->page
* against NULL before touching it or its virtual
* against NULL before touching it or its virtual
* memory (pkt). Because some
rx_
handler might have
* memory (pkt). Because some handler might have
* already taken or freed the pages.
* already taken or freed the pages.
*/
*/
...
@@ -3807,7 +3807,7 @@ static int il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *en
...
@@ -3807,7 +3807,7 @@ static int il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *en
&
il
->
bands
[
IEEE80211_BAND_2GHZ
].
channels
[
5
],
&
il
->
bands
[
IEEE80211_BAND_2GHZ
].
channels
[
5
],
&
il
->
ctx
);
&
il
->
ctx
);
il3945_setup_deferred_work
(
il
);
il3945_setup_deferred_work
(
il
);
il3945_setup_
rx_
handlers
(
il
);
il3945_setup_handlers
(
il
);
il_power_initialize
(
il
);
il_power_initialize
(
il
);
/*********************************
/*********************************
...
...
drivers/net/wireless/iwlegacy/3945.c
View file @
d0c72347
...
@@ -2462,10 +2462,10 @@ unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il,
...
@@ -2462,10 +2462,10 @@ unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il,
return
sizeof
(
struct
il3945_tx_beacon_cmd
)
+
frame_size
;
return
sizeof
(
struct
il3945_tx_beacon_cmd
)
+
frame_size
;
}
}
void
il3945_hw_
rx_
handler_setup
(
struct
il_priv
*
il
)
void
il3945_hw_handler_setup
(
struct
il_priv
*
il
)
{
{
il
->
rx_
handlers
[
C_TX
]
=
il3945_rx_reply_tx
;
il
->
handlers
[
C_TX
]
=
il3945_rx_reply_tx
;
il
->
rx_
handlers
[
N_3945_RX
]
=
il3945_rx_reply_rx
;
il
->
handlers
[
N_3945_RX
]
=
il3945_rx_reply_rx
;
}
}
void
il3945_hw_setup_deferred_work
(
struct
il_priv
*
il
)
void
il3945_hw_setup_deferred_work
(
struct
il_priv
*
il
)
...
...
drivers/net/wireless/iwlegacy/3945.h
View file @
d0c72347
...
@@ -225,7 +225,7 @@ extern void il3945_dump_nic_error_log(struct il_priv *il);
...
@@ -225,7 +225,7 @@ extern void il3945_dump_nic_error_log(struct il_priv *il);
* il3945_mac_ <-- mac80211 callback
* il3945_mac_ <-- mac80211 callback
*
*
****************************************************************************/
****************************************************************************/
extern
void
il3945_hw_
rx_
handler_setup
(
struct
il_priv
*
il
);
extern
void
il3945_hw_handler_setup
(
struct
il_priv
*
il
);
extern
void
il3945_hw_setup_deferred_work
(
struct
il_priv
*
il
);
extern
void
il3945_hw_setup_deferred_work
(
struct
il_priv
*
il
);
extern
void
il3945_hw_cancel_deferred_work
(
struct
il_priv
*
il
);
extern
void
il3945_hw_cancel_deferred_work
(
struct
il_priv
*
il
);
extern
int
il3945_hw_rxq_stop
(
struct
il_priv
*
il
);
extern
int
il3945_hw_rxq_stop
(
struct
il_priv
*
il
);
...
...
drivers/net/wireless/iwlegacy/4965-mac.c
View file @
d0c72347
...
@@ -3911,7 +3911,7 @@ static void il4965_rx_card_state_notif(struct il_priv *il,
...
@@ -3911,7 +3911,7 @@ static void il4965_rx_card_state_notif(struct il_priv *il,
}
}
/**
/**
* il4965_setup_
rx_
handlers - Initialize Rx handler callbacks
* il4965_setup_handlers - Initialize Rx handler callbacks
*
*
* Setup the RX handlers for each of the reply types sent from the uCode
* Setup the RX handlers for each of the reply types sent from the uCode
* to the host.
* to the host.
...
@@ -3919,47 +3919,47 @@ static void il4965_rx_card_state_notif(struct il_priv *il,
...
@@ -3919,47 +3919,47 @@ static void il4965_rx_card_state_notif(struct il_priv *il,
* This function chains into the hardware specific files for them to setup
* This function chains into the hardware specific files for them to setup
* any hardware specific handlers as well.
* any hardware specific handlers as well.
*/
*/
static
void
il4965_setup_
rx_
handlers
(
struct
il_priv
*
il
)
static
void
il4965_setup_handlers
(
struct
il_priv
*
il
)
{
{
il
->
rx_
handlers
[
N_ALIVE
]
=
il4965_rx_reply_alive
;
il
->
handlers
[
N_ALIVE
]
=
il4965_rx_reply_alive
;
il
->
rx_
handlers
[
N_ERROR
]
=
il_rx_reply_error
;
il
->
handlers
[
N_ERROR
]
=
il_rx_reply_error
;
il
->
rx_
handlers
[
N_CHANNEL_SWITCH
]
=
il_rx_csa
;
il
->
handlers
[
N_CHANNEL_SWITCH
]
=
il_rx_csa
;
il
->
rx_
handlers
[
N_SPECTRUM_MEASUREMENT
]
=
il
->
handlers
[
N_SPECTRUM_MEASUREMENT
]
=
il_rx_spectrum_measure_notif
;
il_rx_spectrum_measure_notif
;
il
->
rx_
handlers
[
N_PM_SLEEP
]
=
il_rx_pm_sleep_notif
;
il
->
handlers
[
N_PM_SLEEP
]
=
il_rx_pm_sleep_notif
;
il
->
rx_
handlers
[
N_PM_DEBUG_STATS
]
=
il
->
handlers
[
N_PM_DEBUG_STATS
]
=
il_rx_pm_debug_stats_notif
;
il_rx_pm_debug_stats_notif
;
il
->
rx_
handlers
[
N_BEACON
]
=
il4965_rx_beacon_notif
;
il
->
handlers
[
N_BEACON
]
=
il4965_rx_beacon_notif
;
/*
/*
* The same handler is used for both the REPLY to a discrete
* The same handler is used for both the REPLY to a discrete
* stats request from the host as well as for the periodic
* stats request from the host as well as for the periodic
* stats notifications (after received beacons) from the uCode.
* stats notifications (after received beacons) from the uCode.
*/
*/
il
->
rx_
handlers
[
C_STATS
]
=
il4965_reply_stats
;
il
->
handlers
[
C_STATS
]
=
il4965_reply_stats
;
il
->
rx_
handlers
[
N_STATS
]
=
il4965_rx_stats
;
il
->
handlers
[
N_STATS
]
=
il4965_rx_stats
;
il_setup_rx_scan_handlers
(
il
);
il_setup_rx_scan_handlers
(
il
);
/* status change handler */
/* status change handler */
il
->
rx_
handlers
[
N_CARD_STATE
]
=
il
->
handlers
[
N_CARD_STATE
]
=
il4965_rx_card_state_notif
;
il4965_rx_card_state_notif
;
il
->
rx_
handlers
[
N_MISSED_BEACONS
]
=
il
->
handlers
[
N_MISSED_BEACONS
]
=
il4965_rx_missed_beacon_notif
;
il4965_rx_missed_beacon_notif
;
/* Rx handlers */
/* Rx handlers */
il
->
rx_
handlers
[
N_RX_PHY
]
=
il4965_rx_reply_rx_phy
;
il
->
handlers
[
N_RX_PHY
]
=
il4965_rx_reply_rx_phy
;
il
->
rx_
handlers
[
N_RX_MPDU
]
=
il4965_rx_reply_rx
;
il
->
handlers
[
N_RX_MPDU
]
=
il4965_rx_reply_rx
;
/* block ack */
/* block ack */
il
->
rx_
handlers
[
N_COMPRESSED_BA
]
=
il4965_rx_reply_compressed_ba
;
il
->
handlers
[
N_COMPRESSED_BA
]
=
il4965_rx_reply_compressed_ba
;
/* Set up hardware specific Rx handlers */
/* Set up hardware specific Rx handlers */
il
->
cfg
->
ops
->
lib
->
rx_
handler_setup
(
il
);
il
->
cfg
->
ops
->
lib
->
handler_setup
(
il
);
}
}
/**
/**
* il4965_rx_handle - Main entry function for receiving responses from uCode
* il4965_rx_handle - Main entry function for receiving responses from uCode
*
*
* Uses the il->
rx_
handlers callback function array to invoke
* Uses the il->handlers callback function array to invoke
* the appropriate handlers, including command responses,
* the appropriate handlers, including command responses,
* frame-received notifications, and other notifications.
* frame-received notifications, and other notifications.
*/
*/
...
@@ -4028,13 +4028,13 @@ void il4965_rx_handle(struct il_priv *il)
...
@@ -4028,13 +4028,13 @@ void il4965_rx_handle(struct il_priv *il)
/* Based on type of command response or notification,
/* Based on type of command response or notification,
* handle those that need handling via function in
* handle those that need handling via function in
*
rx_handlers table. See il4965_setup_rx
_handlers() */
*
handlers table. See il4965_setup
_handlers() */
if
(
il
->
rx_
handlers
[
pkt
->
hdr
.
cmd
])
{
if
(
il
->
handlers
[
pkt
->
hdr
.
cmd
])
{
D_RX
(
"r = %d, i = %d, %s, 0x%02x
\n
"
,
r
,
D_RX
(
"r = %d, i = %d, %s, 0x%02x
\n
"
,
r
,
i
,
il_get_cmd_string
(
pkt
->
hdr
.
cmd
),
i
,
il_get_cmd_string
(
pkt
->
hdr
.
cmd
),
pkt
->
hdr
.
cmd
);
pkt
->
hdr
.
cmd
);
il
->
isr_stats
.
rx_
handlers
[
pkt
->
hdr
.
cmd
]
++
;
il
->
isr_stats
.
handlers
[
pkt
->
hdr
.
cmd
]
++
;
il
->
rx_
handlers
[
pkt
->
hdr
.
cmd
]
(
il
,
rxb
);
il
->
handlers
[
pkt
->
hdr
.
cmd
]
(
il
,
rxb
);
}
else
{
}
else
{
/* No handling needed */
/* No handling needed */
D_RX
(
D_RX
(
...
@@ -4046,7 +4046,7 @@ void il4965_rx_handle(struct il_priv *il)
...
@@ -4046,7 +4046,7 @@ void il4965_rx_handle(struct il_priv *il)
/*
/*
* XXX: After here, we should always check rxb->page
* XXX: After here, we should always check rxb->page
* against NULL before touching it or its virtual
* against NULL before touching it or its virtual
* memory (pkt). Because some
rx_
handler might have
* memory (pkt). Because some handler might have
* already taken or freed the pages.
* already taken or freed the pages.
*/
*/
...
@@ -6358,7 +6358,7 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
...
@@ -6358,7 +6358,7 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
}
il4965_setup_deferred_work
(
il
);
il4965_setup_deferred_work
(
il
);
il4965_setup_
rx_
handlers
(
il
);
il4965_setup_handlers
(
il
);
/*********************************************
/*********************************************
* 8. Enable interrupts and read RFKILL state
* 8. Enable interrupts and read RFKILL state
...
...
drivers/net/wireless/iwlegacy/4965.c
View file @
d0c72347
...
@@ -2142,13 +2142,13 @@ static void il4965_rx_beacon_notif(struct il_priv *il,
...
@@ -2142,13 +2142,13 @@ static void il4965_rx_beacon_notif(struct il_priv *il,
}
}
/* Set up 4965-specific Rx frame reply handlers */
/* Set up 4965-specific Rx frame reply handlers */
static
void
il4965_
rx_
handler_setup
(
struct
il_priv
*
il
)
static
void
il4965_handler_setup
(
struct
il_priv
*
il
)
{
{
/* Legacy Rx frames */
/* Legacy Rx frames */
il
->
rx_
handlers
[
N_RX
]
=
il4965_rx_reply_rx
;
il
->
handlers
[
N_RX
]
=
il4965_rx_reply_rx
;
/* Tx response */
/* Tx response */
il
->
rx_
handlers
[
C_TX
]
=
il4965_rx_reply_tx
;
il
->
handlers
[
C_TX
]
=
il4965_rx_reply_tx
;
il
->
rx_
handlers
[
N_BEACON
]
=
il4965_rx_beacon_notif
;
il
->
handlers
[
N_BEACON
]
=
il4965_rx_beacon_notif
;
}
}
static
struct
il_hcmd_ops
il4965_hcmd
=
{
static
struct
il_hcmd_ops
il4965_hcmd
=
{
...
@@ -2316,7 +2316,7 @@ static struct il_lib_ops il4965_lib = {
...
@@ -2316,7 +2316,7 @@ static struct il_lib_ops il4965_lib = {
.
txq_attach_buf_to_tfd
=
il4965_hw_txq_attach_buf_to_tfd
,
.
txq_attach_buf_to_tfd
=
il4965_hw_txq_attach_buf_to_tfd
,
.
txq_free_tfd
=
il4965_hw_txq_free_tfd
,
.
txq_free_tfd
=
il4965_hw_txq_free_tfd
,
.
txq_init
=
il4965_hw_tx_queue_init
,
.
txq_init
=
il4965_hw_tx_queue_init
,
.
rx_handler_setup
=
il4965_rx
_handler_setup
,
.
handler_setup
=
il4965
_handler_setup
,
.
is_valid_rtc_data_addr
=
il4965_hw_valid_rtc_data_addr
,
.
is_valid_rtc_data_addr
=
il4965_hw_valid_rtc_data_addr
,
.
init_alive_start
=
il4965_init_alive_start
,
.
init_alive_start
=
il4965_init_alive_start
,
.
load_ucode
=
il4965_load_bsm
,
.
load_ucode
=
il4965_load_bsm
,
...
...
drivers/net/wireless/iwlegacy/iwl-core.h
View file @
d0c72347
...
@@ -136,7 +136,7 @@ struct il_lib_ops {
...
@@ -136,7 +136,7 @@ struct il_lib_ops {
int
(
*
txq_init
)(
struct
il_priv
*
il
,
int
(
*
txq_init
)(
struct
il_priv
*
il
,
struct
il_tx_queue
*
txq
);
struct
il_tx_queue
*
txq
);
/* setup Rx handler */
/* setup Rx handler */
void
(
*
rx_
handler_setup
)(
struct
il_priv
*
il
);
void
(
*
handler_setup
)(
struct
il_priv
*
il
);
/* alive notification after init uCode load */
/* alive notification after init uCode load */
void
(
*
init_alive_start
)(
struct
il_priv
*
il
);
void
(
*
init_alive_start
)(
struct
il_priv
*
il
);
/* check validity of rtc data address */
/* check validity of rtc data address */
...
...
drivers/net/wireless/iwlegacy/iwl-debugfs.c
View file @
d0c72347
...
@@ -555,11 +555,11 @@ static ssize_t il_dbgfs_interrupt_read(struct file *file,
...
@@ -555,11 +555,11 @@ static ssize_t il_dbgfs_interrupt_read(struct file *file,
"Rx command responses:
\t\t
%u
\n
"
,
"Rx command responses:
\t\t
%u
\n
"
,
il
->
isr_stats
.
rx
);
il
->
isr_stats
.
rx
);
for
(
cnt
=
0
;
cnt
<
IL_CN_MAX
;
cnt
++
)
{
for
(
cnt
=
0
;
cnt
<
IL_CN_MAX
;
cnt
++
)
{
if
(
il
->
isr_stats
.
rx_
handlers
[
cnt
]
>
0
)
if
(
il
->
isr_stats
.
handlers
[
cnt
]
>
0
)
pos
+=
scnprintf
(
buf
+
pos
,
bufsz
-
pos
,
pos
+=
scnprintf
(
buf
+
pos
,
bufsz
-
pos
,
"
\t
Rx handler[%36s]:
\t\t
%u
\n
"
,
"
\t
Rx handler[%36s]:
\t\t
%u
\n
"
,
il_get_cmd_string
(
cnt
),
il_get_cmd_string
(
cnt
),
il
->
isr_stats
.
rx_
handlers
[
cnt
]);
il
->
isr_stats
.
handlers
[
cnt
]);
}
}
pos
+=
scnprintf
(
buf
+
pos
,
bufsz
-
pos
,
"Tx/FH interrupt:
\t\t
%u
\n
"
,
pos
+=
scnprintf
(
buf
+
pos
,
bufsz
-
pos
,
"Tx/FH interrupt:
\t\t
%u
\n
"
,
...
...
drivers/net/wireless/iwlegacy/iwl-dev.h
View file @
d0c72347
...
@@ -813,7 +813,7 @@ struct isr_stats {
...
@@ -813,7 +813,7 @@ struct isr_stats {
u32
ctkill
;
u32
ctkill
;
u32
wakeup
;
u32
wakeup
;
u32
rx
;
u32
rx
;
u32
rx_
handlers
[
IL_CN_MAX
];
u32
handlers
[
IL_CN_MAX
];
u32
tx
;
u32
tx
;
u32
unhandled
;
u32
unhandled
;
};
};
...
@@ -968,7 +968,7 @@ struct il_priv {
...
@@ -968,7 +968,7 @@ struct il_priv {
enum
ieee80211_band
band
;
enum
ieee80211_band
band
;
int
alloc_rxb_page
;
int
alloc_rxb_page
;
void
(
*
rx_
handlers
[
IL_CN_MAX
])(
struct
il_priv
*
il
,
void
(
*
handlers
[
IL_CN_MAX
])(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
struct
il_rx_buf
*
rxb
);
struct
ieee80211_supported_band
bands
[
IEEE80211_NUM_BANDS
];
struct
ieee80211_supported_band
bands
[
IEEE80211_NUM_BANDS
];
...
...
drivers/net/wireless/iwlegacy/iwl-scan.c
View file @
d0c72347
...
@@ -263,12 +263,12 @@ static void il_rx_scan_complete_notif(struct il_priv *il,
...
@@ -263,12 +263,12 @@ static void il_rx_scan_complete_notif(struct il_priv *il,
void
il_setup_rx_scan_handlers
(
struct
il_priv
*
il
)
void
il_setup_rx_scan_handlers
(
struct
il_priv
*
il
)
{
{
/* scan handlers */
/* scan handlers */
il
->
rx_
handlers
[
C_SCAN
]
=
il_rx_reply_scan
;
il
->
handlers
[
C_SCAN
]
=
il_rx_reply_scan
;
il
->
rx_
handlers
[
N_SCAN_START
]
=
il
->
handlers
[
N_SCAN_START
]
=
il_rx_scan_start_notif
;
il_rx_scan_start_notif
;
il
->
rx_
handlers
[
N_SCAN_RESULTS
]
=
il
->
handlers
[
N_SCAN_RESULTS
]
=
il_rx_scan_results_notif
;
il_rx_scan_results_notif
;
il
->
rx_
handlers
[
N_SCAN_COMPLETE
]
=
il
->
handlers
[
N_SCAN_COMPLETE
]
=
il_rx_scan_complete_notif
;
il_rx_scan_complete_notif
;
}
}
EXPORT_SYMBOL
(
il_setup_rx_scan_handlers
);
EXPORT_SYMBOL
(
il_setup_rx_scan_handlers
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment