Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
222b048c
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看板
提交
222b048c
编写于
4月 26, 2013
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
上级
375e875c
499892f2
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
24 addition
and
34 deletion
+24
-34
drivers/net/wireless/iwlwifi/dvm/agn.h
drivers/net/wireless/iwlwifi/dvm/agn.h
+1
-1
drivers/net/wireless/iwlwifi/dvm/debugfs.c
drivers/net/wireless/iwlwifi/dvm/debugfs.c
+7
-9
drivers/net/wireless/iwlwifi/dvm/main.c
drivers/net/wireless/iwlwifi/dvm/main.c
+3
-3
drivers/net/wireless/iwlwifi/dvm/sta.c
drivers/net/wireless/iwlwifi/dvm/sta.c
+4
-1
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mac80211.c
+1
-1
drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c
drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c
+0
-5
drivers/net/wireless/iwlwifi/mvm/power.c
drivers/net/wireless/iwlwifi/mvm/power.c
+4
-12
drivers/net/wireless/iwlwifi/mvm/utils.c
drivers/net/wireless/iwlwifi/mvm/utils.c
+3
-2
drivers/net/wireless/iwlwifi/pcie/drv.c
drivers/net/wireless/iwlwifi/pcie/drv.c
+1
-0
未找到文件。
drivers/net/wireless/iwlwifi/dvm/agn.h
浏览文件 @
222b048c
...
...
@@ -172,7 +172,7 @@ int iwl_calib_set(struct iwl_priv *priv,
const
struct
iwl_calib_hdr
*
cmd
,
int
len
);
void
iwl_calib_free_results
(
struct
iwl_priv
*
priv
);
int
iwl_dump_nic_event_log
(
struct
iwl_priv
*
priv
,
bool
full_log
,
char
**
buf
,
bool
display
);
char
**
buf
);
int
iwlagn_hw_valid_rtc_data_addr
(
u32
addr
);
/* lib */
...
...
drivers/net/wireless/iwlwifi/dvm/debugfs.c
浏览文件 @
222b048c
...
...
@@ -2237,15 +2237,13 @@ static ssize_t iwl_dbgfs_log_event_read(struct file *file,
size_t
count
,
loff_t
*
ppos
)
{
struct
iwl_priv
*
priv
=
file
->
private_data
;
char
*
buf
;
int
pos
=
0
;
ssize_t
ret
=
-
ENOMEM
;
char
*
buf
=
NULL
;
ssize_t
ret
;
ret
=
pos
=
iwl_dump_nic_event_log
(
priv
,
true
,
&
buf
,
true
);
if
(
buf
)
{
ret
=
simple_read_from_buffer
(
user_buf
,
count
,
ppos
,
buf
,
pos
);
kfree
(
buf
);
}
ret
=
iwl_dump_nic_event_log
(
priv
,
true
,
&
buf
);
if
(
ret
>
0
)
ret
=
simple_read_from_buffer
(
user_buf
,
count
,
ppos
,
buf
,
ret
);
kfree
(
buf
);
return
ret
;
}
...
...
@@ -2269,7 +2267,7 @@ static ssize_t iwl_dbgfs_log_event_write(struct file *file,
if
(
sscanf
(
buf
,
"%d"
,
&
event_log_flag
)
!=
1
)
return
-
EFAULT
;
if
(
event_log_flag
==
1
)
iwl_dump_nic_event_log
(
priv
,
true
,
NULL
,
false
);
iwl_dump_nic_event_log
(
priv
,
true
,
NULL
);
return
count
;
}
...
...
drivers/net/wireless/iwlwifi/dvm/main.c
浏览文件 @
222b048c
...
...
@@ -1795,7 +1795,7 @@ static int iwl_print_last_event_logs(struct iwl_priv *priv, u32 capacity,
#define DEFAULT_DUMP_EVENT_LOG_ENTRIES (20)
int
iwl_dump_nic_event_log
(
struct
iwl_priv
*
priv
,
bool
full_log
,
char
**
buf
,
bool
display
)
char
**
buf
)
{
u32
base
;
/* SRAM byte address of event log header */
u32
capacity
;
/* event log capacity in # entries */
...
...
@@ -1866,7 +1866,7 @@ int iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log,
size
);
#ifdef CONFIG_IWLWIFI_DEBUG
if
(
display
)
{
if
(
buf
)
{
if
(
full_log
)
bufsz
=
capacity
*
48
;
else
...
...
@@ -1962,7 +1962,7 @@ static void iwl_nic_error(struct iwl_op_mode *op_mode)
priv
->
fw
->
fw_version
);
iwl_dump_nic_error_log
(
priv
);
iwl_dump_nic_event_log
(
priv
,
false
,
NULL
,
false
);
iwl_dump_nic_event_log
(
priv
,
false
,
NULL
);
iwlagn_fw_error
(
priv
,
false
);
}
...
...
drivers/net/wireless/iwlwifi/dvm/sta.c
浏览文件 @
222b048c
...
...
@@ -695,6 +695,7 @@ void iwl_clear_ucode_stations(struct iwl_priv *priv,
void
iwl_restore_stations
(
struct
iwl_priv
*
priv
,
struct
iwl_rxon_context
*
ctx
)
{
struct
iwl_addsta_cmd
sta_cmd
;
static
const
struct
iwl_link_quality_cmd
zero_lq
=
{};
struct
iwl_link_quality_cmd
lq
;
int
i
;
bool
found
=
false
;
...
...
@@ -733,7 +734,9 @@ void iwl_restore_stations(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
else
memcpy
(
&
lq
,
priv
->
stations
[
i
].
lq
,
sizeof
(
struct
iwl_link_quality_cmd
));
send_lq
=
true
;
if
(
!
memcmp
(
&
lq
,
&
zero_lq
,
sizeof
(
lq
)))
send_lq
=
true
;
}
spin_unlock_bh
(
&
priv
->
sta_lock
);
ret
=
iwl_send_add_sta
(
priv
,
&
sta_cmd
,
CMD_SYNC
);
...
...
drivers/net/wireless/iwlwifi/mvm/mac80211.c
浏览文件 @
222b048c
...
...
@@ -207,7 +207,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
hw
->
wiphy
->
hw_version
=
mvm
->
trans
->
hw_id
;
if
(
iwl
wifi_mod_params
.
power_save
)
if
(
iwl
mvm_mod_params
.
power_scheme
!=
IWL_POWER_SCHEME_CAM
)
hw
->
wiphy
->
flags
|=
WIPHY_FLAG_PS_ON_BY_DEFAULT
;
else
hw
->
wiphy
->
flags
&=
~
WIPHY_FLAG_PS_ON_BY_DEFAULT
;
...
...
drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c
浏览文件 @
222b048c
...
...
@@ -153,11 +153,6 @@ static void iwl_mvm_phy_ctxt_cmd_data(struct iwl_mvm *mvm,
cmd
->
ci
.
ctrl_pos
=
iwl_mvm_get_ctrl_pos
(
chandef
);
/* Set rx the chains */
/* TODO:
* Need to add on chain noise calibration limitations, and
* BT coex considerations.
*/
idle_cnt
=
chains_static
;
active_cnt
=
chains_dynamic
;
...
...
drivers/net/wireless/iwlwifi/mvm/power.c
浏览文件 @
222b048c
...
...
@@ -111,8 +111,7 @@ void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
*/
cmd
->
keep_alive_seconds
=
POWER_KEEP_ALIVE_PERIOD_SEC
;
if
((
iwlmvm_mod_params
.
power_scheme
==
IWL_POWER_SCHEME_CAM
)
||
!
iwlwifi_mod_params
.
power_save
)
if
(
iwlmvm_mod_params
.
power_scheme
==
IWL_POWER_SCHEME_CAM
)
return
;
cmd
->
flags
|=
cpu_to_le16
(
POWER_FLAGS_POWER_SAVE_ENA_MSK
);
...
...
@@ -146,14 +145,8 @@ void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
keep_alive
=
DIV_ROUND_UP
(
keep_alive
,
MSEC_PER_SEC
);
cmd
->
keep_alive_seconds
=
keep_alive
;
if
(
iwlmvm_mod_params
.
power_scheme
==
IWL_POWER_SCHEME_LP
)
{
/* TODO: Also for D3 (device sleep / WoWLAN) */
cmd
->
rx_data_timeout
=
cpu_to_le32
(
10
*
USEC_PER_MSEC
);
cmd
->
tx_data_timeout
=
cpu_to_le32
(
10
*
USEC_PER_MSEC
);
}
else
{
cmd
->
rx_data_timeout
=
cpu_to_le32
(
100
*
USEC_PER_MSEC
);
cmd
->
tx_data_timeout
=
cpu_to_le32
(
100
*
USEC_PER_MSEC
);
}
cmd
->
rx_data_timeout
=
cpu_to_le32
(
100
*
USEC_PER_MSEC
);
cmd
->
tx_data_timeout
=
cpu_to_le32
(
100
*
USEC_PER_MSEC
);
}
int
iwl_mvm_power_update_mode
(
struct
iwl_mvm
*
mvm
,
struct
ieee80211_vif
*
vif
)
...
...
@@ -177,8 +170,7 @@ int iwl_mvm_power_disable(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
if
(
vif
->
type
!=
NL80211_IFTYPE_STATION
||
vif
->
p2p
)
return
0
;
if
((
iwlmvm_mod_params
.
power_scheme
!=
IWL_POWER_SCHEME_CAM
)
&&
iwlwifi_mod_params
.
power_save
)
if
(
iwlmvm_mod_params
.
power_scheme
!=
IWL_POWER_SCHEME_CAM
)
cmd
.
flags
|=
cpu_to_le16
(
POWER_FLAGS_POWER_SAVE_ENA_MSK
);
iwl_mvm_power_log
(
mvm
,
&
cmd
);
...
...
drivers/net/wireless/iwlwifi/mvm/utils.c
浏览文件 @
222b048c
...
...
@@ -253,8 +253,9 @@ int iwl_mvm_rx_fw_error(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb,
u8
first_antenna
(
u8
mask
)
{
BUILD_BUG_ON
(
ANT_A
!=
BIT
(
0
));
/* using ffs is wrong if not */
WARN_ON_ONCE
(
!
mask
);
/* ffs will return 0 if mask is zeroed */
return
(
u8
)(
BIT
(
ffs
(
mask
)));
if
(
WARN_ON_ONCE
(
!
mask
))
/* ffs will return 0 if mask is zeroed */
return
BIT
(
0
);
return
BIT
(
ffs
(
mask
)
-
1
);
}
/*
...
...
drivers/net/wireless/iwlwifi/pcie/drv.c
浏览文件 @
222b048c
...
...
@@ -256,6 +256,7 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = {
/* 7000 Series */
{
IWL_PCI_DEVICE
(
0x08B1
,
0x4070
,
iwl7260_2ac_cfg
)},
{
IWL_PCI_DEVICE
(
0x08B1
,
0x4062
,
iwl7260_2ac_cfg
)},
{
IWL_PCI_DEVICE
(
0x08B1
,
0xC070
,
iwl7260_2ac_cfg
)},
{
IWL_PCI_DEVICE
(
0x08B3
,
0x0070
,
iwl3160_ac_cfg
)},
{
IWL_PCI_DEVICE
(
0x08B3
,
0x8070
,
iwl3160_ac_cfg
)},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录