Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
864c5a4d
Commit
864c5a4d
authored
Aug 07, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes-davem' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6
parents
14ae8566
f27b62d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
net/mac80211/debugfs_netdev.c
net/mac80211/debugfs_netdev.c
+5
-3
net/mac80211/debugfs_sta.c
net/mac80211/debugfs_sta.c
+1
-1
net/mac80211/ieee80211.c
net/mac80211/ieee80211.c
+1
-0
net/mac80211/ieee80211_ioctl.c
net/mac80211/ieee80211_ioctl.c
+13
-6
No files found.
net/mac80211/debugfs_netdev.c
View file @
864c5a4d
...
@@ -271,9 +271,11 @@ static void add_files(struct ieee80211_sub_if_data *sdata)
...
@@ -271,9 +271,11 @@ static void add_files(struct ieee80211_sub_if_data *sdata)
}
}
}
}
#define DEBUGFS_DEL(name, type)\
#define DEBUGFS_DEL(name, type) \
debugfs_remove(sdata->debugfs.type.name);\
do { \
sdata->debugfs.type.name = NULL;
debugfs_remove(sdata->debugfs.type.name); \
sdata->debugfs.type.name = NULL; \
} while (0)
static
void
del_sta_files
(
struct
ieee80211_sub_if_data
*
sdata
)
static
void
del_sta_files
(
struct
ieee80211_sub_if_data
*
sdata
)
{
{
...
...
net/mac80211/debugfs_sta.c
View file @
864c5a4d
...
@@ -157,7 +157,7 @@ static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf,
...
@@ -157,7 +157,7 @@ static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf,
struct
sta_info
*
sta
=
file
->
private_data
;
struct
sta_info
*
sta
=
file
->
private_data
;
for
(
i
=
0
;
i
<
NUM_RX_DATA_QUEUES
;
i
++
)
for
(
i
=
0
;
i
<
NUM_RX_DATA_QUEUES
;
i
++
)
p
+=
scnprintf
(
p
,
sizeof
(
buf
)
+
buf
-
p
,
"%x "
,
p
+=
scnprintf
(
p
,
sizeof
(
buf
)
+
buf
-
p
,
"%x "
,
sta
->
last_seq_ctrl
[
i
]
);
le16_to_cpu
(
sta
->
last_seq_ctrl
[
i
])
);
p
+=
scnprintf
(
p
,
sizeof
(
buf
)
+
buf
-
p
,
"
\n
"
);
p
+=
scnprintf
(
p
,
sizeof
(
buf
)
+
buf
-
p
,
"
\n
"
);
return
simple_read_from_buffer
(
userbuf
,
count
,
ppos
,
buf
,
p
-
buf
);
return
simple_read_from_buffer
(
userbuf
,
count
,
ppos
,
buf
,
p
-
buf
);
}
}
...
...
net/mac80211/ieee80211.c
View file @
864c5a4d
...
@@ -1650,6 +1650,7 @@ static int ieee80211_master_start_xmit(struct sk_buff *skb,
...
@@ -1650,6 +1650,7 @@ static int ieee80211_master_start_xmit(struct sk_buff *skb,
if
(
skb_headroom
(
skb
)
<
headroom
)
{
if
(
skb_headroom
(
skb
)
<
headroom
)
{
if
(
pskb_expand_head
(
skb
,
headroom
,
0
,
GFP_ATOMIC
))
{
if
(
pskb_expand_head
(
skb
,
headroom
,
0
,
GFP_ATOMIC
))
{
dev_kfree_skb
(
skb
);
dev_kfree_skb
(
skb
);
dev_put
(
odev
);
return
0
;
return
0
;
}
}
}
}
...
...
net/mac80211/ieee80211_ioctl.c
View file @
864c5a4d
...
@@ -697,17 +697,24 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev,
...
@@ -697,17 +697,24 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev,
if
(
!
netif_running
(
dev
))
if
(
!
netif_running
(
dev
))
return
-
ENETDOWN
;
return
-
ENETDOWN
;
if
(
local
->
scan_flags
&
IEEE80211_SCAN_MATCH_SSID
)
{
switch
(
sdata
->
type
)
{
if
(
sdata
->
type
==
IEEE80211_IF_TYPE_STA
||
case
IEEE80211_IF_TYPE_STA
:
sdata
->
type
==
IEEE80211_IF_TYPE_IBSS
)
{
case
IEEE80211_IF_TYPE_IBSS
:
if
(
local
->
scan_flags
&
IEEE80211_SCAN_MATCH_SSID
)
{
ssid
=
sdata
->
u
.
sta
.
ssid
;
ssid
=
sdata
->
u
.
sta
.
ssid
;
ssid_len
=
sdata
->
u
.
sta
.
ssid_len
;
ssid_len
=
sdata
->
u
.
sta
.
ssid_len
;
}
else
if
(
sdata
->
type
==
IEEE80211_IF_TYPE_AP
)
{
}
break
;
case
IEEE80211_IF_TYPE_AP
:
if
(
local
->
scan_flags
&
IEEE80211_SCAN_MATCH_SSID
)
{
ssid
=
sdata
->
u
.
ap
.
ssid
;
ssid
=
sdata
->
u
.
ap
.
ssid
;
ssid_len
=
sdata
->
u
.
ap
.
ssid_len
;
ssid_len
=
sdata
->
u
.
ap
.
ssid_len
;
}
else
}
return
-
EINVAL
;
break
;
default:
return
-
EOPNOTSUPP
;
}
}
return
ieee80211_sta_req_scan
(
dev
,
ssid
,
ssid_len
);
return
ieee80211_sta_req_scan
(
dev
,
ssid
,
ssid_len
);
}
}
...
...
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