Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143716 - net.ethX not working for wireless
Summary: net.ethX not working for wireless
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 14:21 UTC by damage
Modified: 2006-08-19 00:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description damage 2006-08-12 14:21:04 UTC
Hi,
I currently switched to ~x86. As I tried to start my wireless device (prism54 chipset) with

# /etc/init.d/net.eth2 start

I got:

Error for wireless request "Set Frequency" (8B04) :
    SET failed on device eth2 ; Input/output error.

According to the kernel-maillinglist this is a problem of the fireware uploading and some kernel internas - I don't know the exact reason.
But I patched my /lib/rcscripts/net/iwconfig.sh as followed:

drunken net # diff -c iwconfig.sh.bak iwconfig.sh
*** iwconfig.sh.bak     2006-08-12 23:09:43.000000000 +0200
--- iwconfig.sh 2006-08-12 23:18:44.000000000 +0200
***************
*** 211,216 ****
--- 211,221 ----
        local iface="$1" mode="$2" channel= key= dessid=
        local ifvar=$(bash_variable "$1")

+       if ! ifconfig "${iface}" up ; then
+               ewarn "can not bringing up ${iface} before setting wireless options"
+               ewarn "some wireless cards are unable to change channel etc. before they are up"
+       fi
+
        if [[ -z ${ESSID} ]]; then
                eerror "${iface} requires an ESSID to be set to operate in ${mode} mode"
                eerror "adjust the essid_${iface} setting in /etc/conf.d/wireless"

It works fine for me.

regards
Daniel
Comment 1 damage 2006-08-13 00:39:39 UTC
Nope, no bug. It allows the driver to be built non-modular.
When non-modular, the resources are not available,
at boot time, to load the firmware.

I just got this answer from kernel maillinglist. So this problem should occur on more wlan cards.
Comment 2 damage 2006-08-13 00:44:06 UTC
Damn, as I notice my patch does not work perfectly. I will work on it.
Comment 3 damage 2006-08-13 01:06:31 UTC
Ah, the problem is that you can not set the channel before setting an essid. The device gets allready up by iwconfig_set_mode so my last patch is useless.
But I have moved the set of the essid between the set of the mode and the set of the channel.

regards
Daniel

drunken net # diff -c ~/iwconfig.sh.bak iwconfig.sh
*** /home/root/iwconfig.sh.bak  2006-08-12 23:09:43.000000000 +0200
--- iwconfig.sh 2006-08-13 10:02:49.000000000 +0200
***************
*** 222,227 ****
--- 222,233 ----

        iwconfig_set_mode "${iface}" "${mode}"

+       # Then set the ESSID
+       if ! iwconfig "${iface}" essid "${ESSID}" ; then
+               eerror "${iface} does not support setting ESSID to \"${dessid}\""
+               return 1
+       fi
+
        channel="channel_${ifvar}"
        # We default the channel to 3
        channel="${!channel:-3}"
***************
*** 238,249 ****
                fi
        fi

-       # Then set the ESSID
-       if ! iwconfig "${iface}" essid "${ESSID}" ; then
-               eerror "${iface} does not support setting ESSID to \"${dessid}\""
-               return 1
-       fi
-
        # Finally apply the user Config
        iwconfig_user_config "${iface}" "${ESSIDVAR}"

--- 244,249 ----
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-08-14 08:04:01 UTC
Thanks for the patch :)
Fixed in 1.12.4-r4
Comment 5 damage 2006-08-19 00:52:20 UTC
Hi,
I've changed the summary for easier searching.

greez
Daniel