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
7883b2f7
Commit
7883b2f7
authored
May 10, 2002
by
Jean Tourrilhes
Committed by
Jeff Garzik
May 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix four similar off-by-one errors in wireless net drvr core.
parent
b446946d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
include/net/iw_handler.h
include/net/iw_handler.h
+2
-1
net/core/wireless.c
net/core/wireless.c
+7
-5
No files found.
include/net/iw_handler.h
View file @
7883b2f7
...
...
@@ -245,7 +245,8 @@
/* Wrapper level flags */
#define IW_DESCR_FLAG_DUMP 0x0001
/* Not part of the dump command */
#define IW_DESCR_FLAG_EVENT 0x0002
/* Generate an event on SET */
#define IW_DESCR_FLAG_RESTRICT 0x0004
/* GET request is ROOT only */
#define IW_DESCR_FLAG_RESTRICT 0x0004
/* GET : request is ROOT only */
/* SET : Omit payload from generated iwevent */
/* Driver level flags */
#define IW_DESCR_FLAG_WAIT 0x0100
/* Wait for driver event */
...
...
net/core/wireless.c
View file @
7883b2f7
...
...
@@ -28,11 +28,13 @@
*
* v3 - 19.12.01 - Jean II
* o Make sure we don't go out of standard_ioctl[] in ioctl_standard_call
* o Fix /proc/net/wireless to handle __u8 to __s8 change in iwqual
* o Add event dispatcher function
* o Add event description
* o Propagate events as rtnetlink IFLA_WIRELESS option
* o Generate event on selected SET requests
*
* v4 - 18.04.01 - Jean II
* o Fix stupid off by one in iw_ioctl_description : IW_ESSID_MAX_SIZE + 1
*/
/***************************** INCLUDES *****************************/
...
...
@@ -122,13 +124,13 @@ static const struct iw_ioctl_description standard_ioctl[] = {
/* SIOCGIWSCAN */
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_SCAN_MAX_DATA
,
0
},
/* SIOCSIWESSID */
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
,
IW_DESCR_FLAG_EVENT
},
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
+
1
,
IW_DESCR_FLAG_EVENT
},
/* SIOCGIWESSID */
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
,
IW_DESCR_FLAG_DUMP
},
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
+
1
,
IW_DESCR_FLAG_DUMP
},
/* SIOCSIWNICKN */
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
,
0
},
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
+
1
,
0
},
/* SIOCGIWNICKN */
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
,
0
},
{
IW_HEADER_TYPE_POINT
,
0
,
1
,
0
,
IW_ESSID_MAX_SIZE
+
1
,
0
},
/* -- hole -- */
{
IW_HEADER_TYPE_NULL
,
0
,
0
,
0
,
0
,
0
},
/* -- hole -- */
...
...
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