Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
832d80ac
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看板
提交
832d80ac
编写于
8月 22, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-davem' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
上级
d5c073ca
eb18fa5b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
37 addition
and
36 deletion
+37
-36
drivers/net/wireless/iwlwifi/iwl-pci.c
drivers/net/wireless/iwlwifi/iwl-pci.c
+10
-15
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2800usb.c
+15
-5
drivers/net/wireless/rt2x00/rt2x00usb.c
drivers/net/wireless/rt2x00/rt2x00usb.c
+7
-10
drivers/net/wireless/wl12xx/acx.c
drivers/net/wireless/wl12xx/acx.c
+1
-5
drivers/net/wireless/wl12xx/testmode.c
drivers/net/wireless/wl12xx/testmode.c
+4
-1
未找到文件。
drivers/net/wireless/iwlwifi/iwl-pci.c
浏览文件 @
832d80ac
...
...
@@ -478,27 +478,22 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return
err
;
}
static
void
iwl_pci_down
(
struct
iwl_bus
*
bus
)
{
struct
iwl_pci_bus
*
pci_bus
=
(
struct
iwl_pci_bus
*
)
bus
->
bus_specific
;
pci_disable_msi
(
pci_bus
->
pci_dev
);
pci_iounmap
(
pci_bus
->
pci_dev
,
pci_bus
->
hw_base
);
pci_release_regions
(
pci_bus
->
pci_dev
);
pci_disable_device
(
pci_bus
->
pci_dev
);
pci_set_drvdata
(
pci_bus
->
pci_dev
,
NULL
);
kfree
(
bus
);
}
static
void
__devexit
iwl_pci_remove
(
struct
pci_dev
*
pdev
)
{
struct
iwl_priv
*
priv
=
pci_get_drvdata
(
pdev
);
void
*
bus_specific
=
priv
->
bus
->
bus_specific
;
struct
iwl_bus
*
bus
=
priv
->
bus
;
struct
iwl_pci_bus
*
pci_bus
=
IWL_BUS_GET_PCI_BUS
(
bus
);
struct
pci_dev
*
pci_dev
=
IWL_BUS_GET_PCI_DEV
(
bus
);
iwl_remove
(
priv
);
iwl_pci_down
(
bus_specific
);
pci_disable_msi
(
pci_dev
);
pci_iounmap
(
pci_dev
,
pci_bus
->
hw_base
);
pci_release_regions
(
pci_dev
);
pci_disable_device
(
pci_dev
);
pci_set_drvdata
(
pci_dev
,
NULL
);
kfree
(
bus
);
}
#ifdef CONFIG_PM
...
...
drivers/net/wireless/rt2x00/rt2800usb.c
浏览文件 @
832d80ac
...
...
@@ -464,6 +464,15 @@ static bool rt2800usb_txdone_entry_check(struct queue_entry *entry, u32 reg)
int
wcid
,
ack
,
pid
;
int
tx_wcid
,
tx_ack
,
tx_pid
;
if
(
test_bit
(
ENTRY_OWNER_DEVICE_DATA
,
&
entry
->
flags
)
||
!
test_bit
(
ENTRY_DATA_STATUS_PENDING
,
&
entry
->
flags
))
{
WARNING
(
entry
->
queue
->
rt2x00dev
,
"Data pending for entry %u in queue %u
\n
"
,
entry
->
entry_idx
,
entry
->
queue
->
qid
);
cond_resched
();
return
false
;
}
wcid
=
rt2x00_get_field32
(
reg
,
TX_STA_FIFO_WCID
);
ack
=
rt2x00_get_field32
(
reg
,
TX_STA_FIFO_TX_ACK_REQUIRED
);
pid
=
rt2x00_get_field32
(
reg
,
TX_STA_FIFO_PID_TYPE
);
...
...
@@ -529,12 +538,11 @@ static void rt2800usb_txdone(struct rt2x00_dev *rt2x00dev)
entry
=
rt2x00queue_get_entry
(
queue
,
Q_INDEX_DONE
);
if
(
rt2800usb_txdone_entry_check
(
entry
,
reg
))
break
;
entry
=
NULL
;
}
if
(
!
entry
||
rt2x00queue_empty
(
queue
))
break
;
rt2800_txdone_entry
(
entry
,
reg
);
if
(
entry
)
rt2800_txdone_entry
(
entry
,
reg
);
}
}
...
...
@@ -558,8 +566,10 @@ static void rt2800usb_work_txdone(struct work_struct *work)
while
(
!
rt2x00queue_empty
(
queue
))
{
entry
=
rt2x00queue_get_entry
(
queue
,
Q_INDEX_DONE
);
if
(
test_bit
(
ENTRY_OWNER_DEVICE_DATA
,
&
entry
->
flags
))
if
(
test_bit
(
ENTRY_OWNER_DEVICE_DATA
,
&
entry
->
flags
)
||
!
test_bit
(
ENTRY_DATA_STATUS_PENDING
,
&
entry
->
flags
))
break
;
if
(
test_bit
(
ENTRY_DATA_IO_FAILED
,
&
entry
->
flags
))
rt2x00lib_txdone_noinfo
(
entry
,
TXDONE_FAILURE
);
else
if
(
rt2x00queue_status_timeout
(
entry
))
...
...
drivers/net/wireless/rt2x00/rt2x00usb.c
浏览文件 @
832d80ac
...
...
@@ -262,23 +262,20 @@ static void rt2x00usb_interrupt_txdone(struct urb *urb)
struct
queue_entry
*
entry
=
(
struct
queue_entry
*
)
urb
->
context
;
struct
rt2x00_dev
*
rt2x00dev
=
entry
->
queue
->
rt2x00dev
;
if
(
!
test_
and_clear_
bit
(
ENTRY_OWNER_DEVICE_DATA
,
&
entry
->
flags
))
if
(
!
test_bit
(
ENTRY_OWNER_DEVICE_DATA
,
&
entry
->
flags
))
return
;
if
(
rt2x00dev
->
ops
->
lib
->
tx_dma_done
)
rt2x00dev
->
ops
->
lib
->
tx_dma_done
(
entry
);
/*
* Report the frame as DMA done
*/
rt2x00lib_dmadone
(
entry
);
/*
* Check if the frame was correctly uploaded
*/
if
(
urb
->
status
)
set_bit
(
ENTRY_DATA_IO_FAILED
,
&
entry
->
flags
);
/*
* Report the frame as DMA done
*/
rt2x00lib_dmadone
(
entry
);
if
(
rt2x00dev
->
ops
->
lib
->
tx_dma_done
)
rt2x00dev
->
ops
->
lib
->
tx_dma_done
(
entry
);
/*
* Schedule the delayed work for reading the TX status
* from the device.
...
...
drivers/net/wireless/wl12xx/acx.c
浏览文件 @
832d80ac
...
...
@@ -77,8 +77,6 @@ int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth)
auth
->
sleep_auth
=
sleep_auth
;
ret
=
wl1271_cmd_configure
(
wl
,
ACX_SLEEP_AUTH
,
auth
,
sizeof
(
*
auth
));
if
(
ret
<
0
)
return
ret
;
out:
kfree
(
auth
);
...
...
@@ -624,10 +622,8 @@ int wl1271_acx_cca_threshold(struct wl1271 *wl)
ret
=
wl1271_cmd_configure
(
wl
,
ACX_CCA_THRESHOLD
,
detection
,
sizeof
(
*
detection
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
wl1271_warning
(
"failed to set cca threshold: %d"
,
ret
);
return
ret
;
}
out:
kfree
(
detection
);
...
...
drivers/net/wireless/wl12xx/testmode.c
浏览文件 @
832d80ac
...
...
@@ -139,12 +139,15 @@ static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[])
if
(
ret
<
0
)
{
wl1271_warning
(
"testmode cmd interrogate failed: %d"
,
ret
);
kfree
(
cmd
);
return
ret
;
}
skb
=
cfg80211_testmode_alloc_reply_skb
(
wl
->
hw
->
wiphy
,
sizeof
(
*
cmd
));
if
(
!
skb
)
if
(
!
skb
)
{
kfree
(
cmd
);
return
-
ENOMEM
;
}
NLA_PUT
(
skb
,
WL1271_TM_ATTR_DATA
,
sizeof
(
*
cmd
),
cmd
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录