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
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
Created attachment 79868 [details, diff] The patch ive made. Sorry on creating the bug i hadn
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.
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