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
e7582561
Commit
e7582561
authored
Oct 06, 2005
by
Ben Cahill
Committed by
James Ketrenos
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes missed beacon logic in relation to on-network AP roaming.
Signed-off-by:
James Ketrenos
<
jketreno@linux.intel.com
>
parent
8935f39e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
drivers/net/wireless/ipw2200.c
drivers/net/wireless/ipw2200.c
+20
-7
drivers/net/wireless/ipw2200.h
drivers/net/wireless/ipw2200.h
+3
-0
No files found.
drivers/net/wireless/ipw2200.c
View file @
e7582561
...
...
@@ -4082,6 +4082,11 @@ static void ipw_bg_gather_stats(void *data)
up
(
&
priv
->
sem
);
}
/* Missed beacon behavior:
* 1st missed -> roaming_threshold, just wait, don't do any scan/roam.
* roaming_threshold -> disassociate_threshold, scan and roam for better signal.
* Above disassociate threshold, give up and stop scanning.
* Roaming is disabled if disassociate_threshold <= roaming_threshold */
static
inline
void
ipw_handle_missed_beacon
(
struct
ipw_priv
*
priv
,
int
missed_count
)
{
...
...
@@ -4116,9 +4121,12 @@ static inline void ipw_handle_missed_beacon(struct ipw_priv *priv,
return
;
}
if
(
missed_count
>
priv
->
roaming_threshold
)
{
if
(
missed_count
>
priv
->
roaming_threshold
&&
missed_count
<=
priv
->
disassociate_threshold
)
{
/* If we are not already roaming, set the ROAM
* bit in the status and kick off a scan */
* bit in the status and kick off a scan.
* This can happen several times before we reach
* disassociate_threshold. */
IPW_DEBUG
(
IPW_DL_NOTIF
|
IPW_DL_STATE
,
"Missed beacon: %d - initiate "
"roaming
\n
"
,
missed_count
);
...
...
@@ -4480,11 +4488,16 @@ static inline void ipw_rx_notification(struct ipw_priv *priv,
STATUS_DISASSOCIATING
)))
queue_work
(
priv
->
workqueue
,
&
priv
->
associate
);
else
if
(
priv
->
status
&
STATUS_ROAMING
)
{
if
(
x
->
status
==
SCAN_COMPLETED_STATUS_COMPLETE
)
/* If a scan completed and we are in roam mode, then
* the scan that completed was the one requested as a
* result of entering roam... so, schedule the
* roam work */
queue_work
(
priv
->
workqueue
,
&
priv
->
roam
);
queue_work
(
priv
->
workqueue
,
&
priv
->
roam
);
else
/* Don't schedule if we aborted the scan */
priv
->
status
&=
~
STATUS_ROAMING
;
}
else
if
(
priv
->
status
&
STATUS_SCAN_PENDING
)
queue_work
(
priv
->
workqueue
,
&
priv
->
request_scan
);
...
...
drivers/net/wireless/ipw2200.h
View file @
e7582561
...
...
@@ -590,6 +590,9 @@ struct notif_channel_result {
u8
uReserved
;
}
__attribute__
((
packed
));
#define SCAN_COMPLETED_STATUS_COMPLETE 1
#define SCAN_COMPLETED_STATUS_ABORTED 2
struct
notif_scan_complete
{
u8
scan_type
;
u8
num_channels
;
...
...
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