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
7fc94272
Commit
7fc94272
authored
Jul 18, 2014
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
parents
2c4db12e
8c26d458
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
net/mac80211/tx.c
net/mac80211/tx.c
+10
-10
net/wireless/trace.h
net/wireless/trace.h
+2
-1
No files found.
net/mac80211/tx.c
View file @
7fc94272
...
...
@@ -414,6 +414,9 @@ ieee80211_tx_h_multicast_ps_buf(struct ieee80211_tx_data *tx)
if
(
ieee80211_has_order
(
hdr
->
frame_control
))
return
TX_CONTINUE
;
if
(
ieee80211_is_probe_req
(
hdr
->
frame_control
))
return
TX_CONTINUE
;
if
(
tx
->
local
->
hw
.
flags
&
IEEE80211_HW_QUEUE_CONTROL
)
info
->
hw_queue
=
tx
->
sdata
->
vif
.
cab_queue
;
...
...
@@ -463,6 +466,7 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx)
{
struct
sta_info
*
sta
=
tx
->
sta
;
struct
ieee80211_tx_info
*
info
=
IEEE80211_SKB_CB
(
tx
->
skb
);
struct
ieee80211_hdr
*
hdr
=
(
struct
ieee80211_hdr
*
)
tx
->
skb
->
data
;
struct
ieee80211_local
*
local
=
tx
->
local
;
if
(
unlikely
(
!
sta
))
...
...
@@ -473,6 +477,12 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx)
!
(
info
->
flags
&
IEEE80211_TX_CTL_NO_PS_BUFFER
)))
{
int
ac
=
skb_get_queue_mapping
(
tx
->
skb
);
if
(
ieee80211_is_mgmt
(
hdr
->
frame_control
)
&&
!
ieee80211_is_bufferable_mmpdu
(
hdr
->
frame_control
))
{
info
->
flags
|=
IEEE80211_TX_CTL_NO_PS_BUFFER
;
return
TX_CONTINUE
;
}
ps_dbg
(
sta
->
sdata
,
"STA %pM aid %d: PS buffer for AC %d
\n
"
,
sta
->
sta
.
addr
,
sta
->
sta
.
aid
,
ac
);
if
(
tx
->
local
->
total_ps_buffered
>=
TOTAL_MAX_TX_BUFFER
)
...
...
@@ -531,19 +541,9 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx)
static
ieee80211_tx_result
debug_noinline
ieee80211_tx_h_ps_buf
(
struct
ieee80211_tx_data
*
tx
)
{
struct
ieee80211_tx_info
*
info
=
IEEE80211_SKB_CB
(
tx
->
skb
);
struct
ieee80211_hdr
*
hdr
=
(
struct
ieee80211_hdr
*
)
tx
->
skb
->
data
;
if
(
unlikely
(
tx
->
flags
&
IEEE80211_TX_PS_BUFFERED
))
return
TX_CONTINUE
;
if
(
ieee80211_is_mgmt
(
hdr
->
frame_control
)
&&
!
ieee80211_is_bufferable_mmpdu
(
hdr
->
frame_control
))
{
if
(
tx
->
flags
&
IEEE80211_TX_UNICAST
)
info
->
flags
|=
IEEE80211_TX_CTL_NO_PS_BUFFER
;
return
TX_CONTINUE
;
}
if
(
tx
->
flags
&
IEEE80211_TX_UNICAST
)
return
ieee80211_tx_h_unicast_ps_buf
(
tx
);
else
...
...
net/wireless/trace.h
View file @
7fc94272
...
...
@@ -2094,6 +2094,7 @@ TRACE_EVENT(cfg80211_michael_mic_failure,
MAC_ASSIGN
(
addr
,
addr
);
__entry
->
key_type
=
key_type
;
__entry
->
key_id
=
key_id
;
if
(
tsc
)
memcpy
(
__entry
->
tsc
,
tsc
,
6
);
),
TP_printk
(
NETDEV_PR_FMT
", "
MAC_PR_FMT
", key type: %d, key id: %d, tsc: %pm"
,
...
...
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