Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
d2dfb33e
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d2dfb33e
编写于
11月 15, 2011
作者:
S
Stanislaw Gruszka
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iwlegacy: rename other handlers
Signed-off-by:
N
Stanislaw Gruszka
<
sgruszka@redhat.com
>
上级
6e9848b4
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
53 addition
and
53 deletion
+53
-53
drivers/net/wireless/iwlegacy/3945-mac.c
drivers/net/wireless/iwlegacy/3945-mac.c
+10
-10
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
+2
-2
drivers/net/wireless/iwlegacy/4965-mac.c
drivers/net/wireless/iwlegacy/4965-mac.c
+15
-15
drivers/net/wireless/iwlegacy/4965.c
drivers/net/wireless/iwlegacy/4965.c
+2
-2
drivers/net/wireless/iwlegacy/4965.h
drivers/net/wireless/iwlegacy/4965.h
+3
-3
drivers/net/wireless/iwlegacy/iwl-core.c
drivers/net/wireless/iwlegacy/iwl-core.c
+6
-6
drivers/net/wireless/iwlegacy/iwl-core.h
drivers/net/wireless/iwlegacy/iwl-core.h
+4
-4
drivers/net/wireless/iwlegacy/iwl-rx.c
drivers/net/wireless/iwlegacy/iwl-rx.c
+2
-2
drivers/net/wireless/iwlegacy/iwl-scan.c
drivers/net/wireless/iwlegacy/iwl-scan.c
+6
-6
未找到文件。
drivers/net/wireless/iwlegacy/3945-mac.c
浏览文件 @
d2dfb33e
...
...
@@ -789,7 +789,7 @@ static void il3945_hdl_add_sta(struct il_priv *il,
D_RX
(
"Received C_ADD_STA: 0x%02X
\n
"
,
pkt
->
u
.
status
);
}
static
void
il3945_
rx_beacon_notif
(
struct
il_priv
*
il
,
static
void
il3945_
hdl_beacon
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -812,7 +812,7 @@ static void il3945_rx_beacon_notif(struct il_priv *il,
/* Handle notification from uCode that card's power state is changing
* due to software, hardware, or critical temperature RFKILL */
static
void
il3945_
rx_card_state_notif
(
struct
il_priv
*
il
,
static
void
il3945_
hdl_card_state
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -856,24 +856,24 @@ static void il3945_setup_handlers(struct il_priv *il)
il
->
handlers
[
N_ALIVE
]
=
il3945_hdl_alive
;
il
->
handlers
[
C_ADD_STA
]
=
il3945_hdl_add_sta
;
il
->
handlers
[
N_ERROR
]
=
il_hdl_error
;
il
->
handlers
[
N_CHANNEL_SWITCH
]
=
il_
rx
_csa
;
il
->
handlers
[
N_CHANNEL_SWITCH
]
=
il_
hdl
_csa
;
il
->
handlers
[
N_SPECTRUM_MEASUREMENT
]
=
il_
rx_spectrum_measure_notif
;
il
->
handlers
[
N_PM_SLEEP
]
=
il_
rx_pm_sleep_notif
;
il_
hdl_spectrum_measurement
;
il
->
handlers
[
N_PM_SLEEP
]
=
il_
hdl_pm_sleep
;
il
->
handlers
[
N_PM_DEBUG_STATS
]
=
il_
rx_pm_debug_stats_notif
;
il
->
handlers
[
N_BEACON
]
=
il3945_
rx_beacon_notif
;
il_
hdl_pm_debug_stats
;
il
->
handlers
[
N_BEACON
]
=
il3945_
hdl_beacon
;
/*
* The same handler is used for both the REPLY to a discrete
* stats request from the host as well as for the periodic
* stats notifications (after received beacons) from the uCode.
*/
il
->
handlers
[
C_STATS
]
=
il3945_
reply
_stats
;
il
->
handlers
[
N_STATS
]
=
il3945_h
w_rx
_stats
;
il
->
handlers
[
C_STATS
]
=
il3945_
hdl_c
_stats
;
il
->
handlers
[
N_STATS
]
=
il3945_h
dl
_stats
;
il_setup_rx_scan_handlers
(
il
);
il
->
handlers
[
N_CARD_STATE
]
=
il3945_
rx_card_state_notif
;
il
->
handlers
[
N_CARD_STATE
]
=
il3945_
hdl_card_state
;
/* Set up hardware specific Rx handlers */
il3945_hw_handler_setup
(
il
);
...
...
drivers/net/wireless/iwlegacy/3945.c
浏览文件 @
d2dfb33e
...
...
@@ -411,7 +411,7 @@ static void il3945_accumulative_stats(struct il_priv *il,
}
#endif
void
il3945_h
w_rx
_stats
(
struct
il_priv
*
il
,
void
il3945_h
dl
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -426,7 +426,7 @@ void il3945_hw_rx_stats(struct il_priv *il,
memcpy
(
&
il
->
_3945
.
stats
,
pkt
->
u
.
raw
,
sizeof
(
il
->
_3945
.
stats
));
}
void
il3945_
reply
_stats
(
struct
il_priv
*
il
,
void
il3945_
hdl_c
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -443,7 +443,7 @@ void il3945_reply_stats(struct il_priv *il,
#endif
D_RX
(
"Statistics have been cleared
\n
"
);
}
il3945_h
w_rx
_stats
(
il
,
rxb
);
il3945_h
dl
_stats
(
il
,
rxb
);
}
...
...
drivers/net/wireless/iwlegacy/3945.h
浏览文件 @
d2dfb33e
...
...
@@ -253,9 +253,9 @@ void il3945_hw_build_tx_cmd_rate(struct il_priv *il,
int
sta_id
,
int
tx_id
);
extern
int
il3945_hw_reg_send_txpower
(
struct
il_priv
*
il
);
extern
int
il3945_hw_reg_set_txpower
(
struct
il_priv
*
il
,
s8
power
);
extern
void
il3945_h
w_rx
_stats
(
struct
il_priv
*
il
,
extern
void
il3945_h
dl
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
void
il3945_
reply
_stats
(
struct
il_priv
*
il
,
void
il3945_
hdl_c
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
extern
void
il3945_disable_events
(
struct
il_priv
*
il
);
extern
int
il4965_get_temperature
(
const
struct
il_priv
*
il
);
...
...
drivers/net/wireless/iwlegacy/4965-mac.c
浏览文件 @
d2dfb33e
...
...
@@ -1242,7 +1242,7 @@ int il4965_dump_fh(struct il_priv *il, char **buf, bool display)
}
return
0
;
}
void
il4965_
rx_missed_beacon_notif
(
struct
il_priv
*
il
,
void
il4965_
hdl_missed_beacon
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
...
...
@@ -1352,7 +1352,7 @@ static void il4965_accumulative_stats(struct il_priv *il,
#define REG_RECALIB_PERIOD (60)
void
il4965_
rx
_stats
(
struct
il_priv
*
il
,
void
il4965_
hdl
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
int
change
;
...
...
@@ -1396,7 +1396,7 @@ void il4965_rx_stats(struct il_priv *il,
il
->
cfg
->
ops
->
lib
->
temp_ops
.
temperature
(
il
);
}
void
il4965_
reply
_stats
(
struct
il_priv
*
il
,
void
il4965_
hdl_c
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -1412,7 +1412,7 @@ void il4965_reply_stats(struct il_priv *il,
#endif
D_RX
(
"Statistics have been cleared
\n
"
);
}
il4965_
rx
_stats
(
il
,
rxb
);
il4965_
hdl
_stats
(
il
,
rxb
);
}
...
...
@@ -3819,7 +3819,7 @@ static void il4965_bg_stats_periodic(unsigned long data)
il_send_stats_request
(
il
,
CMD_ASYNC
,
false
);
}
static
void
il4965_
rx_beacon_notif
(
struct
il_priv
*
il
,
static
void
il4965_
hdl_beacon
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -3861,7 +3861,7 @@ static void il4965_perform_ct_kill_task(struct il_priv *il)
/* Handle notification from uCode that card's power state is changing
* due to software, hardware, or critical temperature RFKILL */
static
void
il4965_
rx_card_state_notif
(
struct
il_priv
*
il
,
static
void
il4965_
hdl_card_state
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -3923,30 +3923,30 @@ static void il4965_setup_handlers(struct il_priv *il)
{
il
->
handlers
[
N_ALIVE
]
=
il4965_hdl_alive
;
il
->
handlers
[
N_ERROR
]
=
il_hdl_error
;
il
->
handlers
[
N_CHANNEL_SWITCH
]
=
il_
rx
_csa
;
il
->
handlers
[
N_CHANNEL_SWITCH
]
=
il_
hdl
_csa
;
il
->
handlers
[
N_SPECTRUM_MEASUREMENT
]
=
il_
rx_spectrum_measure_notif
;
il
->
handlers
[
N_PM_SLEEP
]
=
il_
rx_pm_sleep_notif
;
il_
hdl_spectrum_measurement
;
il
->
handlers
[
N_PM_SLEEP
]
=
il_
hdl_pm_sleep
;
il
->
handlers
[
N_PM_DEBUG_STATS
]
=
il_
rx_pm_debug_stats_notif
;
il
->
handlers
[
N_BEACON
]
=
il4965_
rx_beacon_notif
;
il_
hdl_pm_debug_stats
;
il
->
handlers
[
N_BEACON
]
=
il4965_
hdl_beacon
;
/*
* The same handler is used for both the REPLY to a discrete
* stats request from the host as well as for the periodic
* stats notifications (after received beacons) from the uCode.
*/
il
->
handlers
[
C_STATS
]
=
il4965_
reply
_stats
;
il
->
handlers
[
N_STATS
]
=
il4965_
rx
_stats
;
il
->
handlers
[
C_STATS
]
=
il4965_
hdl_c
_stats
;
il
->
handlers
[
N_STATS
]
=
il4965_
hdl
_stats
;
il_setup_rx_scan_handlers
(
il
);
/* status change handler */
il
->
handlers
[
N_CARD_STATE
]
=
il4965_
rx_card_state_notif
;
il4965_
hdl_card_state
;
il
->
handlers
[
N_MISSED_BEACONS
]
=
il4965_
rx_missed_beacon_notif
;
il4965_
hdl_missed_beacon
;
/* Rx handlers */
il
->
handlers
[
N_RX_PHY
]
=
il4965_hdl_rx_phy
;
il
->
handlers
[
N_RX_MPDU
]
=
il4965_hdl_rx
;
...
...
drivers/net/wireless/iwlegacy/4965.c
浏览文件 @
d2dfb33e
...
...
@@ -2122,7 +2122,7 @@ static void il4965_hdl_tx(struct il_priv *il,
spin_unlock_irqrestore
(
&
il
->
sta_lock
,
flags
);
}
static
void
il4965_
rx_beacon_notif
(
struct
il_priv
*
il
,
static
void
il4965_
hdl_beacon
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -2148,7 +2148,7 @@ static void il4965_handler_setup(struct il_priv *il)
il
->
handlers
[
N_RX
]
=
il4965_hdl_rx
;
/* Tx response */
il
->
handlers
[
C_TX
]
=
il4965_hdl_tx
;
il
->
handlers
[
N_BEACON
]
=
il4965_
rx_beacon_notif
;
il
->
handlers
[
N_BEACON
]
=
il4965_
hdl_beacon
;
}
static
struct
il_hcmd_ops
il4965_hcmd
=
{
...
...
drivers/net/wireless/iwlegacy/4965.h
浏览文件 @
d2dfb33e
...
...
@@ -122,13 +122,13 @@ void il4965_tx_queue_set_status(struct il_priv *il,
u8
il4965_toggle_tx_ant
(
struct
il_priv
*
il
,
u8
ant_idx
,
u8
valid
);
/* rx */
void
il4965_
rx_missed_beacon_notif
(
struct
il_priv
*
il
,
void
il4965_
hdl_missed_beacon
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
bool
il4965_good_plcp_health
(
struct
il_priv
*
il
,
struct
il_rx_pkt
*
pkt
);
void
il4965_
rx
_stats
(
struct
il_priv
*
il
,
void
il4965_
hdl
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
void
il4965_
reply
_stats
(
struct
il_priv
*
il
,
void
il4965_
hdl_c
_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
/* scan */
...
...
drivers/net/wireless/iwlegacy/iwl-core.c
浏览文件 @
d2dfb33e
...
...
@@ -847,7 +847,7 @@ void il_chswitch_done(struct il_priv *il, bool is_success)
}
EXPORT_SYMBOL
(
il_chswitch_done
);
void
il_
rx
_csa
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
void
il_
hdl
_csa
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
struct
il_csa_notification
*
csa
=
&
(
pkt
->
u
.
csa_notif
);
...
...
@@ -870,7 +870,7 @@ void il_rx_csa(struct il_priv *il, struct il_rx_buf *rxb)
il_chswitch_done
(
il
,
false
);
}
}
EXPORT_SYMBOL
(
il_
rx
_csa
);
EXPORT_SYMBOL
(
il_
hdl
_csa
);
#ifdef CONFIG_IWLEGACY_DEBUG
void
il_print_rx_config_cmd
(
struct
il_priv
*
il
,
...
...
@@ -1189,7 +1189,7 @@ int il_send_stats_request(struct il_priv *il, u8 flags, bool clear)
}
EXPORT_SYMBOL
(
il_send_stats_request
);
void
il_
rx_pm_sleep_notif
(
struct
il_priv
*
il
,
void
il_
hdl_pm_sleep
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
#ifdef CONFIG_IWLEGACY_DEBUG
...
...
@@ -1199,9 +1199,9 @@ void il_rx_pm_sleep_notif(struct il_priv *il,
sleep
->
pm_sleep_mode
,
sleep
->
pm_wakeup_src
);
#endif
}
EXPORT_SYMBOL
(
il_
rx_pm_sleep_notif
);
EXPORT_SYMBOL
(
il_
hdl_pm_sleep
);
void
il_
rx_pm_debug_stats_notif
(
struct
il_priv
*
il
,
void
il_
hdl_pm_debug_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -1211,7 +1211,7 @@ void il_rx_pm_debug_stats_notif(struct il_priv *il,
il_get_cmd_string
(
pkt
->
hdr
.
cmd
));
il_print_hex_dump
(
il
,
IL_DL_RADIO
,
pkt
->
u
.
raw
,
len
);
}
EXPORT_SYMBOL
(
il_
rx_pm_debug_stats_notif
);
EXPORT_SYMBOL
(
il_
hdl_pm_debug_stats
);
void
il_hdl_error
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
...
...
drivers/net/wireless/iwlegacy/iwl-core.h
浏览文件 @
d2dfb33e
...
...
@@ -369,9 +369,9 @@ static inline void il_update_stats(struct il_priv *il, bool is_tx,
/*****************************************************
* RX handlers.
* **************************************************/
void
il_
rx_pm_sleep_notif
(
struct
il_priv
*
il
,
void
il_
hdl_pm_sleep
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
void
il_
rx_pm_debug_stats_notif
(
struct
il_priv
*
il
,
void
il_
hdl_pm_debug_stats
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
void
il_hdl_error
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
...
...
@@ -388,12 +388,12 @@ int il_rx_queue_space(const struct il_rx_queue *q);
void
il_tx_cmd_complete
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
/* Handlers */
void
il_
rx_spectrum_measure_notif
(
struct
il_priv
*
il
,
void
il_
hdl_spectrum_measurement
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
void
il_recover_from_stats
(
struct
il_priv
*
il
,
struct
il_rx_pkt
*
pkt
);
void
il_chswitch_done
(
struct
il_priv
*
il
,
bool
is_success
);
void
il_
rx
_csa
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
void
il_
hdl
_csa
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
);
/* TX helpers */
...
...
drivers/net/wireless/iwlegacy/iwl-rx.c
浏览文件 @
d2dfb33e
...
...
@@ -210,7 +210,7 @@ int il_rx_queue_alloc(struct il_priv *il)
EXPORT_SYMBOL
(
il_rx_queue_alloc
);
void
il_
rx_spectrum_measure_notif
(
struct
il_priv
*
il
,
void
il_
hdl_spectrum_measurement
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -225,7 +225,7 @@ void il_rx_spectrum_measure_notif(struct il_priv *il,
memcpy
(
&
il
->
measure_report
,
report
,
sizeof
(
*
report
));
il
->
measurement_status
|=
MEASUREMENT_READY
;
}
EXPORT_SYMBOL
(
il_
rx_spectrum_measure_notif
);
EXPORT_SYMBOL
(
il_
hdl_spectrum_measurement
);
/*
* returns non-zero if packet should be dropped
...
...
drivers/net/wireless/iwlegacy/iwl-scan.c
浏览文件 @
d2dfb33e
...
...
@@ -195,7 +195,7 @@ static void il_hdl_scan(struct il_priv *il,
}
/* Service N_SCAN_START (0x82) */
static
void
il_
rx_scan_start_notif
(
struct
il_priv
*
il
,
static
void
il_
hdl_scan_start
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
struct
il_rx_pkt
*
pkt
=
rxb_addr
(
rxb
);
...
...
@@ -213,7 +213,7 @@ static void il_rx_scan_start_notif(struct il_priv *il,
}
/* Service N_SCAN_RESULTS (0x83) */
static
void
il_
rx_scan_results_notif
(
struct
il_priv
*
il
,
static
void
il_
hdl_scan_results
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
#ifdef CONFIG_IWLEGACY_DEBUG
...
...
@@ -235,7 +235,7 @@ static void il_rx_scan_results_notif(struct il_priv *il,
}
/* Service N_SCAN_COMPLETE (0x84) */
static
void
il_
rx_scan_complete_notif
(
struct
il_priv
*
il
,
static
void
il_
hdl_scan_complete
(
struct
il_priv
*
il
,
struct
il_rx_buf
*
rxb
)
{
...
...
@@ -265,11 +265,11 @@ void il_setup_rx_scan_handlers(struct il_priv *il)
/* scan handlers */
il
->
handlers
[
C_SCAN
]
=
il_hdl_scan
;
il
->
handlers
[
N_SCAN_START
]
=
il_
rx_scan_start_notif
;
il_
hdl_scan_start
;
il
->
handlers
[
N_SCAN_RESULTS
]
=
il_
rx_scan_results_notif
;
il_
hdl_scan_results
;
il
->
handlers
[
N_SCAN_COMPLETE
]
=
il_
rx_scan_complete_notif
;
il_
hdl_scan_complete
;
}
EXPORT_SYMBOL
(
il_setup_rx_scan_handlers
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录