Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e734207f
Commit
e734207f
authored
Nov 14, 2012
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
parents
bd2a8130
31df3bb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
drivers/net/wireless/iwlwifi/dvm/mac80211.c
drivers/net/wireless/iwlwifi/dvm/mac80211.c
+1
-1
drivers/net/wireless/iwlwifi/dvm/main.c
drivers/net/wireless/iwlwifi/dvm/main.c
+1
-1
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/rx.c
+21
-2
No files found.
drivers/net/wireless/iwlwifi/dvm/mac80211.c
View file @
e734207f
...
@@ -521,7 +521,7 @@ static void iwlagn_mac_tx(struct ieee80211_hw *hw,
...
@@ -521,7 +521,7 @@ static void iwlagn_mac_tx(struct ieee80211_hw *hw,
ieee80211_get_tx_rate
(
hw
,
IEEE80211_SKB_CB
(
skb
))
->
bitrate
);
ieee80211_get_tx_rate
(
hw
,
IEEE80211_SKB_CB
(
skb
))
->
bitrate
);
if
(
iwlagn_tx_skb
(
priv
,
control
->
sta
,
skb
))
if
(
iwlagn_tx_skb
(
priv
,
control
->
sta
,
skb
))
dev_kfree_skb_any
(
skb
);
ieee80211_free_txskb
(
hw
,
skb
);
}
}
static
void
iwlagn_mac_update_tkip_key
(
struct
ieee80211_hw
*
hw
,
static
void
iwlagn_mac_update_tkip_key
(
struct
ieee80211_hw
*
hw
,
...
...
drivers/net/wireless/iwlwifi/dvm/main.c
View file @
e734207f
...
@@ -2114,7 +2114,7 @@ static void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb)
...
@@ -2114,7 +2114,7 @@ static void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb)
info
=
IEEE80211_SKB_CB
(
skb
);
info
=
IEEE80211_SKB_CB
(
skb
);
iwl_trans_free_tx_cmd
(
priv
->
trans
,
info
->
driver_data
[
1
]);
iwl_trans_free_tx_cmd
(
priv
->
trans
,
info
->
driver_data
[
1
]);
dev_kfree_skb_any
(
skb
);
ieee80211_free_txskb
(
priv
->
hw
,
skb
);
}
}
static
void
iwl_set_hw_rfkill_state
(
struct
iwl_op_mode
*
op_mode
,
bool
state
)
static
void
iwl_set_hw_rfkill_state
(
struct
iwl_op_mode
*
op_mode
,
bool
state
)
...
...
drivers/net/wireless/iwlwifi/pcie/rx.c
View file @
e734207f
...
@@ -321,6 +321,14 @@ static void iwl_rx_allocate(struct iwl_trans *trans, gfp_t priority)
...
@@ -321,6 +321,14 @@ static void iwl_rx_allocate(struct iwl_trans *trans, gfp_t priority)
dma_map_page
(
trans
->
dev
,
page
,
0
,
dma_map_page
(
trans
->
dev
,
page
,
0
,
PAGE_SIZE
<<
trans_pcie
->
rx_page_order
,
PAGE_SIZE
<<
trans_pcie
->
rx_page_order
,
DMA_FROM_DEVICE
);
DMA_FROM_DEVICE
);
if
(
dma_mapping_error
(
trans
->
dev
,
rxb
->
page_dma
))
{
rxb
->
page
=
NULL
;
spin_lock_irqsave
(
&
rxq
->
lock
,
flags
);
list_add
(
&
rxb
->
list
,
&
rxq
->
rx_used
);
spin_unlock_irqrestore
(
&
rxq
->
lock
,
flags
);
__free_pages
(
page
,
trans_pcie
->
rx_page_order
);
return
;
}
/* dma address must be no more than 36 bits */
/* dma address must be no more than 36 bits */
BUG_ON
(
rxb
->
page_dma
&
~
DMA_BIT_MASK
(
36
));
BUG_ON
(
rxb
->
page_dma
&
~
DMA_BIT_MASK
(
36
));
/* and also 256 byte aligned! */
/* and also 256 byte aligned! */
...
@@ -488,8 +496,19 @@ static void iwl_rx_handle_rxbuf(struct iwl_trans *trans,
...
@@ -488,8 +496,19 @@ static void iwl_rx_handle_rxbuf(struct iwl_trans *trans,
dma_map_page
(
trans
->
dev
,
rxb
->
page
,
0
,
dma_map_page
(
trans
->
dev
,
rxb
->
page
,
0
,
PAGE_SIZE
<<
trans_pcie
->
rx_page_order
,
PAGE_SIZE
<<
trans_pcie
->
rx_page_order
,
DMA_FROM_DEVICE
);
DMA_FROM_DEVICE
);
list_add_tail
(
&
rxb
->
list
,
&
rxq
->
rx_free
);
if
(
dma_mapping_error
(
trans
->
dev
,
rxb
->
page_dma
))
{
rxq
->
free_count
++
;
/*
* free the page(s) as well to not break
* the invariant that the items on the used
* list have no page(s)
*/
__free_pages
(
rxb
->
page
,
trans_pcie
->
rx_page_order
);
rxb
->
page
=
NULL
;
list_add_tail
(
&
rxb
->
list
,
&
rxq
->
rx_used
);
}
else
{
list_add_tail
(
&
rxb
->
list
,
&
rxq
->
rx_free
);
rxq
->
free_count
++
;
}
}
else
}
else
list_add_tail
(
&
rxb
->
list
,
&
rxq
->
rx_used
);
list_add_tail
(
&
rxb
->
list
,
&
rxq
->
rx_used
);
spin_unlock_irqrestore
(
&
rxq
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
rxq
->
lock
,
flags
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment