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
nexedi
linux
Commits
8cdc196b
Commit
8cdc196b
authored
Feb 15, 2013
by
Johannes Berg
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mac80211/master' into HEAD
parents
03395003
3d9646d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
net/mac80211/cfg.c
net/mac80211/cfg.c
+2
-1
net/mac80211/mlme.c
net/mac80211/mlme.c
+7
-4
net/wireless/scan.c
net/wireless/scan.c
+1
-1
No files found.
net/mac80211/cfg.c
View file @
8cdc196b
...
@@ -2088,7 +2088,8 @@ static int ieee80211_set_mcast_rate(struct wiphy *wiphy, struct net_device *dev,
...
@@ -2088,7 +2088,8 @@ static int ieee80211_set_mcast_rate(struct wiphy *wiphy, struct net_device *dev,
{
{
struct
ieee80211_sub_if_data
*
sdata
=
IEEE80211_DEV_TO_SUB_IF
(
dev
);
struct
ieee80211_sub_if_data
*
sdata
=
IEEE80211_DEV_TO_SUB_IF
(
dev
);
memcpy
(
sdata
->
vif
.
bss_conf
.
mcast_rate
,
rate
,
sizeof
(
rate
));
memcpy
(
sdata
->
vif
.
bss_conf
.
mcast_rate
,
rate
,
sizeof
(
int
)
*
IEEE80211_NUM_BANDS
);
return
0
;
return
0
;
}
}
...
...
net/mac80211/mlme.c
View file @
8cdc196b
...
@@ -3488,6 +3488,7 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
...
@@ -3488,6 +3488,7 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
ret
=
0
;
ret
=
0
;
out:
while
(
!
cfg80211_chandef_usable
(
sdata
->
local
->
hw
.
wiphy
,
chandef
,
while
(
!
cfg80211_chandef_usable
(
sdata
->
local
->
hw
.
wiphy
,
chandef
,
IEEE80211_CHAN_DISABLED
))
{
IEEE80211_CHAN_DISABLED
))
{
if
(
WARN_ON
(
chandef
->
width
==
NL80211_CHAN_WIDTH_20_NOHT
))
{
if
(
WARN_ON
(
chandef
->
width
==
NL80211_CHAN_WIDTH_20_NOHT
))
{
...
@@ -3496,14 +3497,13 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
...
@@ -3496,14 +3497,13 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
goto
out
;
goto
out
;
}
}
ret
=
chandef_downgrade
(
chandef
);
ret
|
=
chandef_downgrade
(
chandef
);
}
}
if
(
chandef
->
width
!=
vht_chandef
.
width
)
if
(
chandef
->
width
!=
vht_chandef
.
width
)
sdata_info
(
sdata
,
sdata_info
(
sdata
,
"
local
regulatory prevented using AP HT/VHT configuration, downgraded
\n
"
);
"
capabilities/
regulatory prevented using AP HT/VHT configuration, downgraded
\n
"
);
out:
WARN_ON_ONCE
(
!
cfg80211_chandef_valid
(
chandef
));
WARN_ON_ONCE
(
!
cfg80211_chandef_valid
(
chandef
));
return
ret
;
return
ret
;
}
}
...
@@ -3617,8 +3617,11 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
...
@@ -3617,8 +3617,11 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
*/
*/
ret
=
ieee80211_vif_use_channel
(
sdata
,
&
chandef
,
ret
=
ieee80211_vif_use_channel
(
sdata
,
&
chandef
,
IEEE80211_CHANCTX_SHARED
);
IEEE80211_CHANCTX_SHARED
);
while
(
ret
&&
chandef
.
width
!=
NL80211_CHAN_WIDTH_20_NOHT
)
while
(
ret
&&
chandef
.
width
!=
NL80211_CHAN_WIDTH_20_NOHT
)
{
ifmgd
->
flags
|=
chandef_downgrade
(
&
chandef
);
ifmgd
->
flags
|=
chandef_downgrade
(
&
chandef
);
ret
=
ieee80211_vif_use_channel
(
sdata
,
&
chandef
,
IEEE80211_CHANCTX_SHARED
);
}
return
ret
;
return
ret
;
}
}
...
...
net/wireless/scan.c
View file @
8cdc196b
...
@@ -1398,7 +1398,7 @@ ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info,
...
@@ -1398,7 +1398,7 @@ ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info,
&
iwe
,
IW_EV_UINT_LEN
);
&
iwe
,
IW_EV_UINT_LEN
);
}
}
buf
=
kmalloc
(
3
0
,
GFP_ATOMIC
);
buf
=
kmalloc
(
3
1
,
GFP_ATOMIC
);
if
(
buf
)
{
if
(
buf
)
{
memset
(
&
iwe
,
0
,
sizeof
(
iwe
));
memset
(
&
iwe
,
0
,
sizeof
(
iwe
));
iwe
.
cmd
=
IWEVCUSTOM
;
iwe
.
cmd
=
IWEVCUSTOM
;
...
...
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