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
9b4760e3
Commit
9b4760e3
authored
Apr 17, 2012
by
Felix Fietkau
Committed by
John W. Linville
May 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ath5k: add possible wiphy interface combinations
Signed-off-by:
Felix Fietkau
<
nbd@openwrt.org
>
parent
992e68bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/base.c
+19
-0
No files found.
drivers/net/wireless/ath/ath5k/base.c
View file @
9b4760e3
...
...
@@ -2415,6 +2415,22 @@ ath5k_tx_complete_poll_work(struct work_struct *work)
* Initialization routines *
\*************************/
static
const
struct
ieee80211_iface_limit
if_limits
[]
=
{
{
.
max
=
2048
,
.
types
=
BIT
(
NL80211_IFTYPE_STATION
)
},
{
.
max
=
4
,
.
types
=
#ifdef CONFIG_MAC80211_MESH
BIT
(
NL80211_IFTYPE_MESH_POINT
)
|
#endif
BIT
(
NL80211_IFTYPE_AP
)
},
};
static
const
struct
ieee80211_iface_combination
if_comb
=
{
.
limits
=
if_limits
,
.
n_limits
=
ARRAY_SIZE
(
if_limits
),
.
max_interfaces
=
2048
,
.
num_different_channels
=
1
,
};
int
__devinit
ath5k_init_ah
(
struct
ath5k_hw
*
ah
,
const
struct
ath_bus_ops
*
bus_ops
)
{
...
...
@@ -2436,6 +2452,9 @@ ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops)
BIT
(
NL80211_IFTYPE_ADHOC
)
|
BIT
(
NL80211_IFTYPE_MESH_POINT
);
hw
->
wiphy
->
iface_combinations
=
&
if_comb
;
hw
->
wiphy
->
n_iface_combinations
=
1
;
/* SW support for IBSS_RSN is provided by mac80211 */
hw
->
wiphy
->
flags
|=
WIPHY_FLAG_IBSS_RSN
;
...
...
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