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
08e22e19
Commit
08e22e19
authored
Apr 14, 2014
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/jberg/mac80211
parents
321d03c8
764152ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
net/mac80211/chan.c
net/mac80211/chan.c
+9
-2
net/mac80211/main.c
net/mac80211/main.c
+3
-1
net/mac80211/offchannel.c
net/mac80211/offchannel.c
+1
-0
net/mac80211/status.c
net/mac80211/status.c
+1
-0
No files found.
net/mac80211/chan.c
View file @
08e22e19
...
@@ -249,7 +249,7 @@ ieee80211_new_chanctx(struct ieee80211_local *local,
...
@@ -249,7 +249,7 @@ ieee80211_new_chanctx(struct ieee80211_local *local,
if
(
!
local
->
use_chanctx
)
{
if
(
!
local
->
use_chanctx
)
{
local
->
_oper_chandef
=
*
chandef
;
local
->
_oper_chandef
=
*
chandef
;
ieee80211_hw_config
(
local
,
0
);
ieee80211_hw_config
(
local
,
IEEE80211_CONF_CHANGE_CHANNEL
);
}
else
{
}
else
{
err
=
drv_add_chanctx
(
local
,
ctx
);
err
=
drv_add_chanctx
(
local
,
ctx
);
if
(
err
)
{
if
(
err
)
{
...
@@ -286,7 +286,7 @@ static void ieee80211_free_chanctx(struct ieee80211_local *local,
...
@@ -286,7 +286,7 @@ static void ieee80211_free_chanctx(struct ieee80211_local *local,
check_single_channel
=
true
;
check_single_channel
=
true
;
local
->
hw
.
conf
.
radar_enabled
=
false
;
local
->
hw
.
conf
.
radar_enabled
=
false
;
ieee80211_hw_config
(
local
,
0
);
ieee80211_hw_config
(
local
,
IEEE80211_CONF_CHANGE_CHANNEL
);
}
else
{
}
else
{
drv_remove_chanctx
(
local
,
ctx
);
drv_remove_chanctx
(
local
,
ctx
);
}
}
...
@@ -492,6 +492,13 @@ void ieee80211_recalc_smps_chanctx(struct ieee80211_local *local,
...
@@ -492,6 +492,13 @@ void ieee80211_recalc_smps_chanctx(struct ieee80211_local *local,
rx_chains_static
=
max
(
rx_chains_static
,
needed_static
);
rx_chains_static
=
max
(
rx_chains_static
,
needed_static
);
rx_chains_dynamic
=
max
(
rx_chains_dynamic
,
needed_dynamic
);
rx_chains_dynamic
=
max
(
rx_chains_dynamic
,
needed_dynamic
);
}
}
/* Disable SMPS for the monitor interface */
sdata
=
rcu_dereference
(
local
->
monitor_sdata
);
if
(
sdata
&&
rcu_access_pointer
(
sdata
->
vif
.
chanctx_conf
)
==
&
chanctx
->
conf
)
rx_chains_dynamic
=
rx_chains_static
=
local
->
rx_chains
;
rcu_read_unlock
();
rcu_read_unlock
();
if
(
!
local
->
use_chanctx
)
{
if
(
!
local
->
use_chanctx
)
{
...
...
net/mac80211/main.c
View file @
08e22e19
...
@@ -148,6 +148,8 @@ static u32 ieee80211_hw_conf_chan(struct ieee80211_local *local)
...
@@ -148,6 +148,8 @@ static u32 ieee80211_hw_conf_chan(struct ieee80211_local *local)
list_for_each_entry_rcu
(
sdata
,
&
local
->
interfaces
,
list
)
{
list_for_each_entry_rcu
(
sdata
,
&
local
->
interfaces
,
list
)
{
if
(
!
rcu_access_pointer
(
sdata
->
vif
.
chanctx_conf
))
if
(
!
rcu_access_pointer
(
sdata
->
vif
.
chanctx_conf
))
continue
;
continue
;
if
(
sdata
->
vif
.
type
==
NL80211_IFTYPE_AP_VLAN
)
continue
;
power
=
min
(
power
,
sdata
->
vif
.
bss_conf
.
txpower
);
power
=
min
(
power
,
sdata
->
vif
.
bss_conf
.
txpower
);
}
}
rcu_read_unlock
();
rcu_read_unlock
();
...
@@ -199,7 +201,7 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
...
@@ -199,7 +201,7 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
{
{
struct
ieee80211_local
*
local
=
sdata
->
local
;
struct
ieee80211_local
*
local
=
sdata
->
local
;
if
(
!
changed
)
if
(
!
changed
||
sdata
->
vif
.
type
==
NL80211_IFTYPE_AP_VLAN
)
return
;
return
;
drv_bss_info_changed
(
local
,
sdata
,
&
sdata
->
vif
.
bss_conf
,
changed
);
drv_bss_info_changed
(
local
,
sdata
,
&
sdata
->
vif
.
bss_conf
,
changed
);
...
...
net/mac80211/offchannel.c
View file @
08e22e19
...
@@ -355,6 +355,7 @@ void ieee80211_sw_roc_work(struct work_struct *work)
...
@@ -355,6 +355,7 @@ void ieee80211_sw_roc_work(struct work_struct *work)
struct
ieee80211_roc_work
*
dep
;
struct
ieee80211_roc_work
*
dep
;
/* start this ROC */
/* start this ROC */
ieee80211_offchannel_stop_vifs
(
local
);
/* switch channel etc */
/* switch channel etc */
ieee80211_recalc_idle
(
local
);
ieee80211_recalc_idle
(
local
);
...
...
net/mac80211/status.c
View file @
08e22e19
...
@@ -618,6 +618,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
...
@@ -618,6 +618,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
sta
,
true
,
acked
);
sta
,
true
,
acked
);
if
((
local
->
hw
.
flags
&
IEEE80211_HW_HAS_RATE_CONTROL
)
&&
if
((
local
->
hw
.
flags
&
IEEE80211_HW_HAS_RATE_CONTROL
)
&&
(
ieee80211_is_data
(
hdr
->
frame_control
))
&&
(
rates_idx
!=
-
1
))
(
rates_idx
!=
-
1
))
sta
->
last_tx_rate
=
info
->
status
.
rates
[
rates_idx
];
sta
->
last_tx_rate
=
info
->
status
.
rates
[
rates_idx
];
...
...
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