Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f8b8a80f
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f8b8a80f
编写于
11月 14, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-davem' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
上级
a32fd63d
fb14ca43
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
36 addition
and
23 deletion
+36
-23
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
+17
-16
drivers/net/wireless/libertas/cfg.c
drivers/net/wireless/libertas/cfg.c
+1
-1
drivers/net/wireless/mwifiex/scan.c
drivers/net/wireless/mwifiex/scan.c
+4
-2
net/mac80211/mlme.c
net/mac80211/mlme.c
+1
-1
net/mac80211/rx.c
net/mac80211/rx.c
+6
-3
net/mac80211/util.c
net/mac80211/util.c
+4
-0
net/wireless/reg.c
net/wireless/reg.c
+3
-0
未找到文件。
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
浏览文件 @
f8b8a80f
...
...
@@ -990,29 +990,16 @@ static int iwl_trans_tx_stop(struct iwl_trans *trans)
return
0
;
}
static
void
iwl_trans_pcie_
disable_sync_irq
(
struct
iwl_trans
*
trans
)
static
void
iwl_trans_pcie_
stop_device
(
struct
iwl_trans
*
trans
)
{
unsigned
long
flags
;
struct
iwl_trans_pcie
*
trans_pcie
=
IWL_TRANS_GET_PCIE_TRANS
(
trans
);
struct
iwl_trans_pcie
*
trans_pcie
=
IWL_TRANS_GET_PCIE_TRANS
(
trans
);
/* tell the device to stop sending interrupts */
spin_lock_irqsave
(
&
trans
->
shrd
->
lock
,
flags
);
iwl_disable_interrupts
(
trans
);
spin_unlock_irqrestore
(
&
trans
->
shrd
->
lock
,
flags
);
/* wait to make sure we flush pending tasklet*/
synchronize_irq
(
bus
(
trans
)
->
irq
);
tasklet_kill
(
&
trans_pcie
->
irq_tasklet
);
}
static
void
iwl_trans_pcie_stop_device
(
struct
iwl_trans
*
trans
)
{
/* stop and reset the on-board processor */
iwl_write32
(
bus
(
trans
),
CSR_RESET
,
CSR_RESET_REG_FLAG_NEVO_RESET
);
/* tell the device to stop sending interrupts */
iwl_trans_pcie_disable_sync_irq
(
trans
);
/* device going down, Stop using ICT table */
iwl_disable_ict
(
trans
);
...
...
@@ -1039,6 +1026,20 @@ static void iwl_trans_pcie_stop_device(struct iwl_trans *trans)
/* Stop the device, and put it in low power state */
iwl_apm_stop
(
priv
(
trans
));
/* Upon stop, the APM issues an interrupt if HW RF kill is set.
* Clean again the interrupt here
*/
spin_lock_irqsave
(
&
trans
->
shrd
->
lock
,
flags
);
iwl_disable_interrupts
(
trans
);
spin_unlock_irqrestore
(
&
trans
->
shrd
->
lock
,
flags
);
/* wait to make sure we flush pending tasklet*/
synchronize_irq
(
bus
(
trans
)
->
irq
);
tasklet_kill
(
&
trans_pcie
->
irq_tasklet
);
/* stop and reset the on-board processor */
iwl_write32
(
bus
(
trans
),
CSR_RESET
,
CSR_RESET_REG_FLAG_NEVO_RESET
);
}
static
int
iwl_trans_pcie_tx
(
struct
iwl_trans
*
trans
,
struct
sk_buff
*
skb
,
...
...
drivers/net/wireless/libertas/cfg.c
浏览文件 @
f8b8a80f
...
...
@@ -634,7 +634,7 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,
if
(
channel
&&
!
(
channel
->
flags
&
IEEE80211_CHAN_DISABLED
))
cfg80211_inform_bss
(
wiphy
,
channel
,
bssid
,
le64_to_cpu
(
*
(
__le64
*
)
tsfdesc
),
bssid
,
get_unaligned_le64
(
tsfdesc
),
capa
,
intvl
,
ie
,
ielen
,
LBS_SCAN_RSSI_TO_MBM
(
rssi
),
GFP_KERNEL
);
...
...
drivers/net/wireless/mwifiex/scan.c
浏览文件 @
f8b8a80f
...
...
@@ -819,8 +819,10 @@ mwifiex_scan_setup_scan_config(struct mwifiex_private *priv,
wildcard_ssid_tlv
->
header
.
len
=
cpu_to_le16
(
(
u16
)
(
ssid_len
+
sizeof
(
wildcard_ssid_tlv
->
max_ssid_length
)));
wildcard_ssid_tlv
->
max_ssid_length
=
user_scan_in
->
ssid_list
[
ssid_idx
].
max_len
;
/* max_ssid_length = 0 tells firmware to perform
specific scan for the SSID filled */
wildcard_ssid_tlv
->
max_ssid_length
=
0
;
memcpy
(
wildcard_ssid_tlv
->
ssid
,
user_scan_in
->
ssid_list
[
ssid_idx
].
ssid
,
...
...
net/mac80211/mlme.c
浏览文件 @
f8b8a80f
...
...
@@ -2288,6 +2288,7 @@ void ieee80211_sta_quiesce(struct ieee80211_sub_if_data *sdata)
cancel_work_sync
(
&
ifmgd
->
request_smps_work
);
cancel_work_sync
(
&
ifmgd
->
monitor_work
);
cancel_work_sync
(
&
ifmgd
->
beacon_connection_loss_work
);
if
(
del_timer_sync
(
&
ifmgd
->
timer
))
set_bit
(
TMR_RUNNING_TIMER
,
&
ifmgd
->
timers_running
);
...
...
@@ -2296,7 +2297,6 @@ void ieee80211_sta_quiesce(struct ieee80211_sub_if_data *sdata)
if
(
del_timer_sync
(
&
ifmgd
->
chswitch_timer
))
set_bit
(
TMR_RUNNING_CHANSW
,
&
ifmgd
->
timers_running
);
cancel_work_sync
(
&
ifmgd
->
monitor_work
);
/* these will just be re-established on connection */
del_timer_sync
(
&
ifmgd
->
conn_mon_timer
);
del_timer_sync
(
&
ifmgd
->
bcn_mon_timer
);
...
...
net/mac80211/rx.c
浏览文件 @
f8b8a80f
...
...
@@ -141,8 +141,9 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
pos
++
;
/* IEEE80211_RADIOTAP_RATE */
if
(
status
->
flag
&
RX_FLAG_HT
)
{
if
(
!
rate
||
status
->
flag
&
RX_FLAG_HT
)
{
/*
* Without rate information don't add it. If we have,
* MCS information is a separate field in radiotap,
* added below. The byte here is needed as padding
* for the channel though, so initialise it to 0.
...
...
@@ -163,12 +164,14 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
else
if
(
status
->
flag
&
RX_FLAG_HT
)
put_unaligned_le16
(
IEEE80211_CHAN_DYN
|
IEEE80211_CHAN_2GHZ
,
pos
);
else
if
(
rate
->
flags
&
IEEE80211_RATE_ERP_G
)
else
if
(
rate
&&
rate
->
flags
&
IEEE80211_RATE_ERP_G
)
put_unaligned_le16
(
IEEE80211_CHAN_OFDM
|
IEEE80211_CHAN_2GHZ
,
pos
);
else
else
if
(
rate
)
put_unaligned_le16
(
IEEE80211_CHAN_CCK
|
IEEE80211_CHAN_2GHZ
,
pos
);
else
put_unaligned_le16
(
IEEE80211_CHAN_2GHZ
,
pos
);
pos
+=
2
;
/* IEEE80211_RADIOTAP_DBM_ANTSIGNAL */
...
...
net/mac80211/util.c
浏览文件 @
f8b8a80f
...
...
@@ -881,6 +881,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
skb
=
ieee80211_probereq_get
(
&
local
->
hw
,
&
sdata
->
vif
,
ssid
,
ssid_len
,
buf
,
buf_len
);
if
(
!
skb
)
goto
out
;
if
(
dst
)
{
mgmt
=
(
struct
ieee80211_mgmt
*
)
skb
->
data
;
...
...
@@ -889,6 +891,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
}
IEEE80211_SKB_CB
(
skb
)
->
flags
|=
IEEE80211_TX_INTFL_DONT_ENCRYPT
;
out:
kfree
(
buf
);
return
skb
;
...
...
net/wireless/reg.c
浏览文件 @
f8b8a80f
...
...
@@ -2265,6 +2265,9 @@ void /* __init_or_exit */ regulatory_exit(void)
kfree
(
last_request
);
last_request
=
NULL
;
dev_set_uevent_suppress
(
&
reg_pdev
->
dev
,
true
);
platform_device_unregister
(
reg_pdev
);
spin_lock_bh
(
&
reg_pending_beacons_lock
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录