Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122954 - Annoying iwconfig script behaviour
Summary: Annoying iwconfig script behaviour
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High trivial
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-15 12:43 UTC by Tobias Struckmeier
Modified: 2006-02-15 20:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The patch ive made. (iwconfig.diff,536 bytes, patch)
2006-02-15 12:47 UTC, Tobias Struckmeier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Struckmeier 2006-02-15 12:43:04 UTC
Hi,

first. I am unsure where to post this bug. Please tell me if it belongs to infrastructure.

Ok now to the bug:
I have set my /etc/conf.d/wireless value associate_order_ethX to "forceany".
What i expected was that it scans for AP
Comment 1 Tobias Struckmeier 2006-02-15 12:43:04 UTC
Hi,

first. I am unsure where to post this bug. Please tell me if it belongs to infrastructure.

Ok now to the bug:
I have set my /etc/conf.d/wireless value associate_order_ethX to "forceany".
What i expected was that it scans for AP´s and if found known networks connect, else force connection to hidden AP´s and at last to other (like unencrypted). 

But when i am near to an open AP that is unencrypted and to one of my preferred that is hidden it connects to the open AP first.

Thats why i patched /lib/rcscripts/net.modules.d/iwconfig to achive the behaviour i expected. I am somewhat unexprienced so i maybe wrong or the patch could be better. 

iwconfig.diff:

--- /lib/rcscripts/net.modules.d/iwconfig
+++ /lib/rcscripts/net.modules.d/iwconfig
@@ -833,6 +833,10 @@

                iwconfig_connect_preferred ${iface} && return 0
                [[ ${associate_order} == forcepreferred ]] && iwconfig_force_preferred ${iface} && return 0
+
+               # Try preferred AP's first even when they are hidden
+               [[ ${associate_order} == forceany ]] && iwconfig_force_preferred ${iface} && return 0
+
                [[ ${associate_order} == any || ${associate_order} == forceany ]] && iwconfig_connect_not_preferred ${iface} && return 0
        fi
Comment 2 Tobias Struckmeier 2006-02-15 12:47:10 UTC
Created attachment 79868 [details, diff]
The patch ive made.

Sorry on creating the bug i hadn
Comment 3 Tobias Struckmeier 2006-02-15 12:47:10 UTC
Created attachment 79868 [details, diff]
The patch ive made.

Sorry on creating the bug i hadn´t the possibility to upload a file. Thats why it is in the bug description.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-02-15 20:43:21 UTC
We've had this fixed in our svn repo for a while now, but your report has prompted me to roll our patch into portage. You've gotten the credit in the changelog - thanks.

Fixed in baselayout-1.11.14-r4