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
7ae0b399
Commit
7ae0b399
authored
Jul 29, 2003
by
Javier Achirica
Committed by
Jeff Garzik
Jul 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wireless airo] makes the card passive when entering monitor mode
parent
78aa20d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+8
-0
No files found.
drivers/net/wireless/airo.c
View file @
7ae0b399
...
@@ -3310,15 +3310,18 @@ static void proc_config_on_close( struct inode *inode, struct file *file ) {
...
@@ -3310,15 +3310,18 @@ static void proc_config_on_close( struct inode *inode, struct file *file ) {
ai
->
config
.
rmode
&=
0xfe00
;
ai
->
config
.
rmode
&=
0xfe00
;
ai
->
flags
&=
~
FLAG_802_11
;
ai
->
flags
&=
~
FLAG_802_11
;
ai
->
config
.
opmode
&=
0xFF00
;
ai
->
config
.
opmode
&=
0xFF00
;
ai
->
config
.
scanMode
=
SCANMODE_ACTIVE
;
if
(
line
[
0
]
==
'a'
)
{
if
(
line
[
0
]
==
'a'
)
{
ai
->
config
.
opmode
|=
0
;
ai
->
config
.
opmode
|=
0
;
}
else
{
}
else
{
ai
->
config
.
opmode
|=
1
;
ai
->
config
.
opmode
|=
1
;
if
(
line
[
0
]
==
'r'
)
{
if
(
line
[
0
]
==
'r'
)
{
ai
->
config
.
rmode
|=
RXMODE_RFMON
|
RXMODE_DISABLE_802_3_HEADER
;
ai
->
config
.
rmode
|=
RXMODE_RFMON
|
RXMODE_DISABLE_802_3_HEADER
;
ai
->
config
.
scanMode
=
SCANMODE_PASSIVE
;
ai
->
flags
|=
FLAG_802_11
;
ai
->
flags
|=
FLAG_802_11
;
}
else
if
(
line
[
0
]
==
'y'
)
{
}
else
if
(
line
[
0
]
==
'y'
)
{
ai
->
config
.
rmode
|=
RXMODE_RFMON_ANYBSS
|
RXMODE_DISABLE_802_3_HEADER
;
ai
->
config
.
rmode
|=
RXMODE_RFMON_ANYBSS
|
RXMODE_DISABLE_802_3_HEADER
;
ai
->
config
.
scanMode
=
SCANMODE_PASSIVE
;
ai
->
flags
|=
FLAG_802_11
;
ai
->
flags
|=
FLAG_802_11
;
}
else
if
(
line
[
0
]
==
'l'
)
}
else
if
(
line
[
0
]
==
'l'
)
ai
->
config
.
rmode
|=
RXMODE_LANMON
;
ai
->
config
.
rmode
|=
RXMODE_LANMON
;
...
@@ -4593,24 +4596,28 @@ static int airo_set_mode(struct net_device *dev,
...
@@ -4593,24 +4596,28 @@ static int airo_set_mode(struct net_device *dev,
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
|=
MODE_STA_IBSS
;
local
->
config
.
opmode
|=
MODE_STA_IBSS
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
scanMode
=
SCANMODE_ACTIVE
;
local
->
flags
&=
~
FLAG_802_11
;
local
->
flags
&=
~
FLAG_802_11
;
break
;
break
;
case
IW_MODE_INFRA
:
case
IW_MODE_INFRA
:
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
|=
MODE_STA_ESS
;
local
->
config
.
opmode
|=
MODE_STA_ESS
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
scanMode
=
SCANMODE_ACTIVE
;
local
->
flags
&=
~
FLAG_802_11
;
local
->
flags
&=
~
FLAG_802_11
;
break
;
break
;
case
IW_MODE_MASTER
:
case
IW_MODE_MASTER
:
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
|=
MODE_AP
;
local
->
config
.
opmode
|=
MODE_AP
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
scanMode
=
SCANMODE_ACTIVE
;
local
->
flags
&=
~
FLAG_802_11
;
local
->
flags
&=
~
FLAG_802_11
;
break
;
break
;
case
IW_MODE_REPEAT
:
case
IW_MODE_REPEAT
:
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
&=
0xFF00
;
local
->
config
.
opmode
|=
MODE_AP_RPTR
;
local
->
config
.
opmode
|=
MODE_AP_RPTR
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
scanMode
=
SCANMODE_ACTIVE
;
local
->
flags
&=
~
FLAG_802_11
;
local
->
flags
&=
~
FLAG_802_11
;
break
;
break
;
case
IW_MODE_MONITOR
:
case
IW_MODE_MONITOR
:
...
@@ -4618,6 +4625,7 @@ static int airo_set_mode(struct net_device *dev,
...
@@ -4618,6 +4625,7 @@ static int airo_set_mode(struct net_device *dev,
local
->
config
.
opmode
|=
MODE_STA_ESS
;
local
->
config
.
opmode
|=
MODE_STA_ESS
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
rmode
&=
0xfe00
;
local
->
config
.
rmode
|=
RXMODE_RFMON
|
RXMODE_DISABLE_802_3_HEADER
;
local
->
config
.
rmode
|=
RXMODE_RFMON
|
RXMODE_DISABLE_802_3_HEADER
;
local
->
config
.
scanMode
=
SCANMODE_PASSIVE
;
local
->
flags
|=
FLAG_802_11
;
local
->
flags
|=
FLAG_802_11
;
break
;
break
;
default:
default:
...
...
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