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
4f4aeb7f
Commit
4f4aeb7f
authored
Jun 03, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
parents
a1868dc2
51a0d38d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/base.c
+3
-14
net/mac80211/agg-tx.c
net/mac80211/agg-tx.c
+4
-2
net/mac80211/rx.c
net/mac80211/rx.c
+11
-2
No files found.
drivers/net/wireless/ath/ath5k/base.c
View file @
4f4aeb7f
...
@@ -222,7 +222,6 @@ static int ath5k_tx(struct ieee80211_hw *hw, struct sk_buff *skb);
...
@@ -222,7 +222,6 @@ static int ath5k_tx(struct ieee80211_hw *hw, struct sk_buff *skb);
static
int
ath5k_tx_queue
(
struct
ieee80211_hw
*
hw
,
struct
sk_buff
*
skb
,
static
int
ath5k_tx_queue
(
struct
ieee80211_hw
*
hw
,
struct
sk_buff
*
skb
,
struct
ath5k_txq
*
txq
);
struct
ath5k_txq
*
txq
);
static
int
ath5k_reset
(
struct
ath5k_softc
*
sc
,
struct
ieee80211_channel
*
chan
);
static
int
ath5k_reset
(
struct
ath5k_softc
*
sc
,
struct
ieee80211_channel
*
chan
);
static
int
ath5k_reset_wake
(
struct
ath5k_softc
*
sc
);
static
int
ath5k_start
(
struct
ieee80211_hw
*
hw
);
static
int
ath5k_start
(
struct
ieee80211_hw
*
hw
);
static
void
ath5k_stop
(
struct
ieee80211_hw
*
hw
);
static
void
ath5k_stop
(
struct
ieee80211_hw
*
hw
);
static
int
ath5k_add_interface
(
struct
ieee80211_hw
*
hw
,
static
int
ath5k_add_interface
(
struct
ieee80211_hw
*
hw
,
...
@@ -2770,7 +2769,7 @@ ath5k_tasklet_reset(unsigned long data)
...
@@ -2770,7 +2769,7 @@ ath5k_tasklet_reset(unsigned long data)
{
{
struct
ath5k_softc
*
sc
=
(
void
*
)
data
;
struct
ath5k_softc
*
sc
=
(
void
*
)
data
;
ath5k_reset
_wake
(
sc
);
ath5k_reset
(
sc
,
sc
->
curchan
);
}
}
/*
/*
...
@@ -2941,20 +2940,10 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan)
...
@@ -2941,20 +2940,10 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan)
ath5k_beacon_config
(
sc
);
ath5k_beacon_config
(
sc
);
/* intrs are enabled by ath5k_beacon_config */
/* intrs are enabled by ath5k_beacon_config */
return
0
;
err:
return
ret
;
}
static
int
ath5k_reset_wake
(
struct
ath5k_softc
*
sc
)
{
int
ret
;
ret
=
ath5k_reset
(
sc
,
sc
->
curchan
);
if
(
!
ret
)
ieee80211_wake_queues
(
sc
->
hw
);
ieee80211_wake_queues
(
sc
->
hw
);
return
0
;
err:
return
ret
;
return
ret
;
}
}
...
...
net/mac80211/agg-tx.c
View file @
4f4aeb7f
...
@@ -332,14 +332,16 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid)
...
@@ -332,14 +332,16 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid)
IEEE80211_QUEUE_STOP_REASON_AGGREGATION
);
IEEE80211_QUEUE_STOP_REASON_AGGREGATION
);
spin_unlock
(
&
local
->
ampdu_lock
);
spin_unlock
(
&
local
->
ampdu_lock
);
spin_unlock_bh
(
&
sta
->
lock
);
/*
send an addBA request
*/
/*
prepare tid data
*/
sta
->
ampdu_mlme
.
dialog_token_allocator
++
;
sta
->
ampdu_mlme
.
dialog_token_allocator
++
;
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
dialog_token
=
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
dialog_token
=
sta
->
ampdu_mlme
.
dialog_token_allocator
;
sta
->
ampdu_mlme
.
dialog_token_allocator
;
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
ssn
=
start_seq_num
;
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
ssn
=
start_seq_num
;
spin_unlock_bh
(
&
sta
->
lock
);
/* send AddBA request */
ieee80211_send_addba_request
(
sdata
,
pubsta
->
addr
,
tid
,
ieee80211_send_addba_request
(
sdata
,
pubsta
->
addr
,
tid
,
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
dialog_token
,
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
dialog_token
,
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
ssn
,
sta
->
ampdu_mlme
.
tid_tx
[
tid
]
->
ssn
,
...
...
net/mac80211/rx.c
View file @
4f4aeb7f
...
@@ -1818,17 +1818,26 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_data *rx, struct sk_buff_head *frames)
...
@@ -1818,17 +1818,26 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_data *rx, struct sk_buff_head *frames)
return
RX_CONTINUE
;
return
RX_CONTINUE
;
if
(
ieee80211_is_back_req
(
bar
->
frame_control
))
{
if
(
ieee80211_is_back_req
(
bar
->
frame_control
))
{
struct
{
__le16
control
,
start_seq_num
;
}
__packed
bar_data
;
if
(
!
rx
->
sta
)
if
(
!
rx
->
sta
)
return
RX_DROP_MONITOR
;
return
RX_DROP_MONITOR
;
if
(
skb_copy_bits
(
skb
,
offsetof
(
struct
ieee80211_bar
,
control
),
&
bar_data
,
sizeof
(
bar_data
)))
return
RX_DROP_MONITOR
;
spin_lock
(
&
rx
->
sta
->
lock
);
spin_lock
(
&
rx
->
sta
->
lock
);
tid
=
le16_to_cpu
(
bar
->
control
)
>>
12
;
tid
=
le16_to_cpu
(
bar
_data
.
control
)
>>
12
;
if
(
!
rx
->
sta
->
ampdu_mlme
.
tid_active_rx
[
tid
])
{
if
(
!
rx
->
sta
->
ampdu_mlme
.
tid_active_rx
[
tid
])
{
spin_unlock
(
&
rx
->
sta
->
lock
);
spin_unlock
(
&
rx
->
sta
->
lock
);
return
RX_DROP_MONITOR
;
return
RX_DROP_MONITOR
;
}
}
tid_agg_rx
=
rx
->
sta
->
ampdu_mlme
.
tid_rx
[
tid
];
tid_agg_rx
=
rx
->
sta
->
ampdu_mlme
.
tid_rx
[
tid
];
start_seq_num
=
le16_to_cpu
(
bar
->
start_seq_num
)
>>
4
;
start_seq_num
=
le16_to_cpu
(
bar
_data
.
start_seq_num
)
>>
4
;
/* reset session timer */
/* reset session timer */
if
(
tid_agg_rx
->
timeout
)
if
(
tid_agg_rx
->
timeout
)
...
...
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