Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
2ddddb98
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2ddddb98
编写于
7月 09, 2008
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
上级
252815b0
814feefa
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
63 addition
and
25 deletion
+63
-25
drivers/net/wireless/libertas/scan.c
drivers/net/wireless/libertas/scan.c
+2
-2
drivers/net/wireless/rt2x00/rt2400pci.c
drivers/net/wireless/rt2x00/rt2400pci.c
+11
-0
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
+11
-0
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2500usb.c
+7
-0
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt61pci.c
+9
-0
drivers/net/wireless/rt2x00/rt73usb.c
drivers/net/wireless/rt2x00/rt73usb.c
+9
-0
drivers/net/wireless/zd1211rw/zd_mac.c
drivers/net/wireless/zd1211rw/zd_mac.c
+1
-0
net/mac80211/rc80211_pid.h
net/mac80211/rc80211_pid.h
+0
-5
net/mac80211/rc80211_pid_algo.c
net/mac80211/rc80211_pid_algo.c
+13
-18
未找到文件。
drivers/net/wireless/libertas/scan.c
浏览文件 @
2ddddb98
...
@@ -567,11 +567,11 @@ static int lbs_process_bss(struct bss_descriptor *bss,
...
@@ -567,11 +567,11 @@ static int lbs_process_bss(struct bss_descriptor *bss,
pos
+=
8
;
pos
+=
8
;
/* beacon interval is 2 bytes long */
/* beacon interval is 2 bytes long */
bss
->
beaconperiod
=
le16_to_cpup
((
void
*
)
pos
);
bss
->
beaconperiod
=
get_unaligned_le16
(
pos
);
pos
+=
2
;
pos
+=
2
;
/* capability information is 2 bytes long */
/* capability information is 2 bytes long */
bss
->
capability
=
le16_to_cpup
((
void
*
)
pos
);
bss
->
capability
=
get_unaligned_le16
(
pos
);
lbs_deb_scan
(
"process_bss: capabilities 0x%04x
\n
"
,
bss
->
capability
);
lbs_deb_scan
(
"process_bss: capabilities 0x%04x
\n
"
,
bss
->
capability
);
pos
+=
2
;
pos
+=
2
;
...
...
drivers/net/wireless/rt2x00/rt2400pci.c
浏览文件 @
2ddddb98
...
@@ -731,6 +731,17 @@ static int rt2400pci_init_registers(struct rt2x00_dev *rt2x00dev)
...
@@ -731,6 +731,17 @@ static int rt2400pci_init_registers(struct rt2x00_dev *rt2x00dev)
(
rt2x00dev
->
rx
->
data_size
/
128
));
(
rt2x00dev
->
rx
->
data_size
/
128
));
rt2x00pci_register_write
(
rt2x00dev
,
CSR9
,
reg
);
rt2x00pci_register_write
(
rt2x00dev
,
CSR9
,
reg
);
rt2x00pci_register_read
(
rt2x00dev
,
CSR14
,
&
reg
);
rt2x00_set_field32
(
&
reg
,
CSR14_TSF_COUNT
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TSF_SYNC
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TBCN
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TCFP
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TATIMW
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_BEACON_GEN
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_CFP_COUNT_PRELOAD
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TBCM_PRELOAD
,
0
);
rt2x00pci_register_write
(
rt2x00dev
,
CSR14
,
reg
);
rt2x00pci_register_write
(
rt2x00dev
,
CNT3
,
0x3f080000
);
rt2x00pci_register_write
(
rt2x00dev
,
CNT3
,
0x3f080000
);
rt2x00pci_register_read
(
rt2x00dev
,
ARCSR0
,
&
reg
);
rt2x00pci_register_read
(
rt2x00dev
,
ARCSR0
,
&
reg
);
...
...
drivers/net/wireless/rt2x00/rt2500pci.c
浏览文件 @
2ddddb98
...
@@ -824,6 +824,17 @@ static int rt2500pci_init_registers(struct rt2x00_dev *rt2x00dev)
...
@@ -824,6 +824,17 @@ static int rt2500pci_init_registers(struct rt2x00_dev *rt2x00dev)
rt2x00_set_field32
(
&
reg
,
CSR11_CW_SELECT
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR11_CW_SELECT
,
0
);
rt2x00pci_register_write
(
rt2x00dev
,
CSR11
,
reg
);
rt2x00pci_register_write
(
rt2x00dev
,
CSR11
,
reg
);
rt2x00pci_register_read
(
rt2x00dev
,
CSR14
,
&
reg
);
rt2x00_set_field32
(
&
reg
,
CSR14_TSF_COUNT
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TSF_SYNC
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TBCN
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TCFP
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TATIMW
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_BEACON_GEN
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_CFP_COUNT_PRELOAD
,
0
);
rt2x00_set_field32
(
&
reg
,
CSR14_TBCM_PRELOAD
,
0
);
rt2x00pci_register_write
(
rt2x00dev
,
CSR14
,
reg
);
rt2x00pci_register_write
(
rt2x00dev
,
CNT3
,
0
);
rt2x00pci_register_write
(
rt2x00dev
,
CNT3
,
0
);
rt2x00pci_register_read
(
rt2x00dev
,
TXCSR8
,
&
reg
);
rt2x00pci_register_read
(
rt2x00dev
,
TXCSR8
,
&
reg
);
...
...
drivers/net/wireless/rt2x00/rt2500usb.c
浏览文件 @
2ddddb98
...
@@ -801,6 +801,13 @@ static int rt2500usb_init_registers(struct rt2x00_dev *rt2x00dev)
...
@@ -801,6 +801,13 @@ static int rt2500usb_init_registers(struct rt2x00_dev *rt2x00dev)
rt2x00_set_field16
(
&
reg
,
TXRX_CSR8_BBP_ID1_VALID
,
0
);
rt2x00_set_field16
(
&
reg
,
TXRX_CSR8_BBP_ID1_VALID
,
0
);
rt2500usb_register_write
(
rt2x00dev
,
TXRX_CSR8
,
reg
);
rt2500usb_register_write
(
rt2x00dev
,
TXRX_CSR8
,
reg
);
rt2500usb_register_read
(
rt2x00dev
,
TXRX_CSR19
,
&
reg
);
rt2x00_set_field16
(
&
reg
,
TXRX_CSR19_TSF_COUNT
,
0
);
rt2x00_set_field16
(
&
reg
,
TXRX_CSR19_TSF_SYNC
,
0
);
rt2x00_set_field16
(
&
reg
,
TXRX_CSR19_TBCN
,
0
);
rt2x00_set_field16
(
&
reg
,
TXRX_CSR19_BEACON_GEN
,
0
);
rt2500usb_register_write
(
rt2x00dev
,
TXRX_CSR19
,
reg
);
rt2500usb_register_write
(
rt2x00dev
,
TXRX_CSR21
,
0xe78f
);
rt2500usb_register_write
(
rt2x00dev
,
TXRX_CSR21
,
0xe78f
);
rt2500usb_register_write
(
rt2x00dev
,
MAC_CSR9
,
0xff1d
);
rt2500usb_register_write
(
rt2x00dev
,
MAC_CSR9
,
0xff1d
);
...
...
drivers/net/wireless/rt2x00/rt61pci.c
浏览文件 @
2ddddb98
...
@@ -1201,6 +1201,15 @@ static int rt61pci_init_registers(struct rt2x00_dev *rt2x00dev)
...
@@ -1201,6 +1201,15 @@ static int rt61pci_init_registers(struct rt2x00_dev *rt2x00dev)
rt2x00_set_field32
(
&
reg
,
TXRX_CSR8_ACK_CTS_54MBS
,
42
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR8_ACK_CTS_54MBS
,
42
);
rt2x00pci_register_write
(
rt2x00dev
,
TXRX_CSR8
,
reg
);
rt2x00pci_register_write
(
rt2x00dev
,
TXRX_CSR8
,
reg
);
rt2x00pci_register_read
(
rt2x00dev
,
TXRX_CSR9
,
&
reg
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_BEACON_INTERVAL
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TSF_TICKING
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TSF_SYNC
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TBTT_ENABLE
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_BEACON_GEN
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TIMESTAMP_COMPENSATE
,
0
);
rt2x00pci_register_write
(
rt2x00dev
,
TXRX_CSR9
,
reg
);
rt2x00pci_register_write
(
rt2x00dev
,
TXRX_CSR15
,
0x0000000f
);
rt2x00pci_register_write
(
rt2x00dev
,
TXRX_CSR15
,
0x0000000f
);
rt2x00pci_register_write
(
rt2x00dev
,
MAC_CSR6
,
0x00000fff
);
rt2x00pci_register_write
(
rt2x00dev
,
MAC_CSR6
,
0x00000fff
);
...
...
drivers/net/wireless/rt2x00/rt73usb.c
浏览文件 @
2ddddb98
...
@@ -1006,6 +1006,15 @@ static int rt73usb_init_registers(struct rt2x00_dev *rt2x00dev)
...
@@ -1006,6 +1006,15 @@ static int rt73usb_init_registers(struct rt2x00_dev *rt2x00dev)
rt2x00_set_field32
(
&
reg
,
TXRX_CSR8_ACK_CTS_54MBS
,
42
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR8_ACK_CTS_54MBS
,
42
);
rt73usb_register_write
(
rt2x00dev
,
TXRX_CSR8
,
reg
);
rt73usb_register_write
(
rt2x00dev
,
TXRX_CSR8
,
reg
);
rt73usb_register_read
(
rt2x00dev
,
TXRX_CSR9
,
&
reg
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_BEACON_INTERVAL
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TSF_TICKING
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TSF_SYNC
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TBTT_ENABLE
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_BEACON_GEN
,
0
);
rt2x00_set_field32
(
&
reg
,
TXRX_CSR9_TIMESTAMP_COMPENSATE
,
0
);
rt73usb_register_write
(
rt2x00dev
,
TXRX_CSR9
,
reg
);
rt73usb_register_write
(
rt2x00dev
,
TXRX_CSR15
,
0x0000000f
);
rt73usb_register_write
(
rt2x00dev
,
TXRX_CSR15
,
0x0000000f
);
rt73usb_register_read
(
rt2x00dev
,
MAC_CSR6
,
&
reg
);
rt73usb_register_read
(
rt2x00dev
,
MAC_CSR6
,
&
reg
);
...
...
drivers/net/wireless/zd1211rw/zd_mac.c
浏览文件 @
2ddddb98
...
@@ -765,6 +765,7 @@ static void zd_op_remove_interface(struct ieee80211_hw *hw,
...
@@ -765,6 +765,7 @@ static void zd_op_remove_interface(struct ieee80211_hw *hw,
{
{
struct
zd_mac
*
mac
=
zd_hw_mac
(
hw
);
struct
zd_mac
*
mac
=
zd_hw_mac
(
hw
);
mac
->
type
=
IEEE80211_IF_TYPE_INVALID
;
mac
->
type
=
IEEE80211_IF_TYPE_INVALID
;
zd_set_beacon_interval
(
&
mac
->
chip
,
0
);
zd_write_mac_addr
(
&
mac
->
chip
,
NULL
);
zd_write_mac_addr
(
&
mac
->
chip
,
NULL
);
}
}
...
...
net/mac80211/rc80211_pid.h
浏览文件 @
2ddddb98
...
@@ -141,7 +141,6 @@ struct rc_pid_events_file_info {
...
@@ -141,7 +141,6 @@ struct rc_pid_events_file_info {
* rate behaviour values (lower means we should trust more what we learnt
* rate behaviour values (lower means we should trust more what we learnt
* about behaviour of rates, higher means we should trust more the natural
* about behaviour of rates, higher means we should trust more the natural
* ordering of rates)
* ordering of rates)
* @fast_start: if Y, push high rates right after initialization
*/
*/
struct
rc_pid_debugfs_entries
{
struct
rc_pid_debugfs_entries
{
struct
dentry
*
dir
;
struct
dentry
*
dir
;
...
@@ -154,7 +153,6 @@ struct rc_pid_debugfs_entries {
...
@@ -154,7 +153,6 @@ struct rc_pid_debugfs_entries {
struct
dentry
*
sharpen_factor
;
struct
dentry
*
sharpen_factor
;
struct
dentry
*
sharpen_duration
;
struct
dentry
*
sharpen_duration
;
struct
dentry
*
norm_offset
;
struct
dentry
*
norm_offset
;
struct
dentry
*
fast_start
;
};
};
void
rate_control_pid_event_tx_status
(
struct
rc_pid_event_buffer
*
buf
,
void
rate_control_pid_event_tx_status
(
struct
rc_pid_event_buffer
*
buf
,
...
@@ -267,9 +265,6 @@ struct rc_pid_info {
...
@@ -267,9 +265,6 @@ struct rc_pid_info {
/* Normalization offset. */
/* Normalization offset. */
unsigned
int
norm_offset
;
unsigned
int
norm_offset
;
/* Fast starst parameter. */
unsigned
int
fast_start
;
/* Rates information. */
/* Rates information. */
struct
rc_pid_rateinfo
*
rinfo
;
struct
rc_pid_rateinfo
*
rinfo
;
...
...
net/mac80211/rc80211_pid_algo.c
浏览文件 @
2ddddb98
...
@@ -398,13 +398,25 @@ static void *rate_control_pid_alloc(struct ieee80211_local *local)
...
@@ -398,13 +398,25 @@ static void *rate_control_pid_alloc(struct ieee80211_local *local)
return
NULL
;
return
NULL
;
}
}
pinfo
->
target
=
RC_PID_TARGET_PF
;
pinfo
->
sampling_period
=
RC_PID_INTERVAL
;
pinfo
->
coeff_p
=
RC_PID_COEFF_P
;
pinfo
->
coeff_i
=
RC_PID_COEFF_I
;
pinfo
->
coeff_d
=
RC_PID_COEFF_D
;
pinfo
->
smoothing_shift
=
RC_PID_SMOOTHING_SHIFT
;
pinfo
->
sharpen_factor
=
RC_PID_SHARPENING_FACTOR
;
pinfo
->
sharpen_duration
=
RC_PID_SHARPENING_DURATION
;
pinfo
->
norm_offset
=
RC_PID_NORM_OFFSET
;
pinfo
->
rinfo
=
rinfo
;
pinfo
->
oldrate
=
0
;
/* Sort the rates. This is optimized for the most common case (i.e.
/* Sort the rates. This is optimized for the most common case (i.e.
* almost-sorted CCK+OFDM rates). Kind of bubble-sort with reversed
* almost-sorted CCK+OFDM rates). Kind of bubble-sort with reversed
* mapping too. */
* mapping too. */
for
(
i
=
0
;
i
<
sband
->
n_bitrates
;
i
++
)
{
for
(
i
=
0
;
i
<
sband
->
n_bitrates
;
i
++
)
{
rinfo
[
i
].
index
=
i
;
rinfo
[
i
].
index
=
i
;
rinfo
[
i
].
rev_index
=
i
;
rinfo
[
i
].
rev_index
=
i
;
if
(
pinfo
->
fast_start
)
if
(
RC_PID_FAST_START
)
rinfo
[
i
].
diff
=
0
;
rinfo
[
i
].
diff
=
0
;
else
else
rinfo
[
i
].
diff
=
i
*
pinfo
->
norm_offset
;
rinfo
[
i
].
diff
=
i
*
pinfo
->
norm_offset
;
...
@@ -425,19 +437,6 @@ static void *rate_control_pid_alloc(struct ieee80211_local *local)
...
@@ -425,19 +437,6 @@ static void *rate_control_pid_alloc(struct ieee80211_local *local)
break
;
break
;
}
}
pinfo
->
target
=
RC_PID_TARGET_PF
;
pinfo
->
sampling_period
=
RC_PID_INTERVAL
;
pinfo
->
coeff_p
=
RC_PID_COEFF_P
;
pinfo
->
coeff_i
=
RC_PID_COEFF_I
;
pinfo
->
coeff_d
=
RC_PID_COEFF_D
;
pinfo
->
smoothing_shift
=
RC_PID_SMOOTHING_SHIFT
;
pinfo
->
sharpen_factor
=
RC_PID_SHARPENING_FACTOR
;
pinfo
->
sharpen_duration
=
RC_PID_SHARPENING_DURATION
;
pinfo
->
norm_offset
=
RC_PID_NORM_OFFSET
;
pinfo
->
fast_start
=
RC_PID_FAST_START
;
pinfo
->
rinfo
=
rinfo
;
pinfo
->
oldrate
=
0
;
#ifdef CONFIG_MAC80211_DEBUGFS
#ifdef CONFIG_MAC80211_DEBUGFS
de
=
&
pinfo
->
dentries
;
de
=
&
pinfo
->
dentries
;
de
->
dir
=
debugfs_create_dir
(
"rc80211_pid"
,
de
->
dir
=
debugfs_create_dir
(
"rc80211_pid"
,
...
@@ -465,9 +464,6 @@ static void *rate_control_pid_alloc(struct ieee80211_local *local)
...
@@ -465,9 +464,6 @@ static void *rate_control_pid_alloc(struct ieee80211_local *local)
de
->
norm_offset
=
debugfs_create_u32
(
"norm_offset"
,
de
->
norm_offset
=
debugfs_create_u32
(
"norm_offset"
,
S_IRUSR
|
S_IWUSR
,
de
->
dir
,
S_IRUSR
|
S_IWUSR
,
de
->
dir
,
&
pinfo
->
norm_offset
);
&
pinfo
->
norm_offset
);
de
->
fast_start
=
debugfs_create_bool
(
"fast_start"
,
S_IRUSR
|
S_IWUSR
,
de
->
dir
,
&
pinfo
->
fast_start
);
#endif
#endif
return
pinfo
;
return
pinfo
;
...
@@ -479,7 +475,6 @@ static void rate_control_pid_free(void *priv)
...
@@ -479,7 +475,6 @@ static void rate_control_pid_free(void *priv)
#ifdef CONFIG_MAC80211_DEBUGFS
#ifdef CONFIG_MAC80211_DEBUGFS
struct
rc_pid_debugfs_entries
*
de
=
&
pinfo
->
dentries
;
struct
rc_pid_debugfs_entries
*
de
=
&
pinfo
->
dentries
;
debugfs_remove
(
de
->
fast_start
);
debugfs_remove
(
de
->
norm_offset
);
debugfs_remove
(
de
->
norm_offset
);
debugfs_remove
(
de
->
sharpen_duration
);
debugfs_remove
(
de
->
sharpen_duration
);
debugfs_remove
(
de
->
sharpen_factor
);
debugfs_remove
(
de
->
sharpen_factor
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录