FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    NetworkManager insists "wireless is disabled", but wpa_supplicant cli connects

    I'm going crazy again with F9 (this post is one of several problems I am having, but I am isolating this one for a separate post)

    I've installed Fedora 9 on a Dell Latitude notebook.

    I am using an external buscard card, with an atheros chip, with the ath5k module. There is also an internal wifi card, but it must stay disabled in the BIOS for now.

    The said external card (wlan1) connects fine using wpa_supplicant

    ( wpa_supplicant -Dwext -c /etc/wpa_supplicant/blah.conf -i wlan1 )

    However, no matter what I do with NetworkManager, it keeps saying "wireless is disabled" (under the drop-down list in the system-tray nm-applet)

    Sometimes there is a brief time period -- about 2-3 seconds -- during which it detects and displays available networks, but then always goes into "wireless is disabled" and everything wireless is grayed out.

    when I right-click on the NM applet, "Enable Networking" is normal and checkable, but "Enable Wireless" is grayed out.

    I have tried using chkconfig but to no avail.

    Please help!!!

    thanks

    andrew

  2. #2
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone?

    I've googled around but the closest cases i found were opposite: people couldn't DISable NetworkManager.
    Could NetworkManager be getting something from the BIOS which tells it that the hardware is there but is disabled? That seems unlikely, in my understanding, and so the disabled internal card is a mere inconsequential coincidence to my problem (or is it?). I have installed/upgraded to Fedora 9 on about 6 distinct systems, and never had this problem except now. The successful NetworkManager operations included systems using an external WiFi card (although they did not have one disabled in the BIOS)

    Furthermore, if wpa_supplicant (CLI) is capable of using the external card, wouldn't it be reasonable to assume that NetworkManager can be FORCED to use it also? That the "wireless is disabled" switch can be manually overridden??

    Where would one do this? Pleeeease help!

    andrew

  3. #3
    Join Date
    Jul 2005
    Location
    Ft Huachuca, AZ
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Open a terminal window, change to root with su - (su dash) and type:

    system-config-network

    Make sure there is a check mark for "Controlled by NetworkManager", "Allow users to enable/disable device". Also remove the check mark from the "Activate on boot" if so enabled. Then check NM again.

    Mike

  4. #4
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Iron_Mike
    Open a terminal window, change to root with su - (su dash) and type:

    system-config-network

    Make sure there is a check mark for "Controlled by NetworkManager", "Allow users to enable/disable device". Also remove the check mark from the "Activate on boot" if so enabled. Then check NM again.
    Thank you, Mike, for replying

    I have tried what you said numerously before. Apologies for not having mentioned that initially.

    Additional observation: Upon boot, without the external atheros card inserted, the NM applet drop-down menu does not mention wireless -- only "wired network". When I physically insert the atheros card, the "Wireless Networks" division (eventually) appears, and it's all grayed out, and it says "wireless is disabled".

    The right-click menu of the NM has "Enable Networking", and I can check and uncheck this. The line below that is "Enable Wireless"; it is unchecked, and grayed out.

    (And, again: when the card is inserted, device wlan1 is automatically created, and I can issue "iwconfig", "iwlist scan" (with perfect scan results), and connect with wpa_supplicant cli.)

    Thanks in advance.

    andrew

  5. #5
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    new findings/clues !

    I discovered that my wpa_supplicant service wasn't really running and can't be started, in spite of system-config-services (gui listing) reporting that it was enabled and running
    Code:
    [root@... init.d]# /etc/init.d/wpa_supplicant start
    Starting wpa_supplicant: /etc/wpa_supplicant/wpa_supplicant.conf, , dbus_bus_get[ctrl_iface_dbus]: Connection refused
    Failed to initialize wpa_supplicant
                                                               [FAILED]
    Also, thinking that perhaps wpa_gui could provide some type of newbie-friendliness (this system is for a newbie who would find CLI stuff painful just yet), I tried wpa_gui and got the following:

    Code:
    [root@... init.d]# wpa_gui
    Failed to open control connection to wpa_supplicant.
    PING failed - trying to reconnect
    PING failed - trying to reconnect
    <...repeated every second or so...>
    (the wpa_gui GUI window does pop up, but doesn't list any interfaces)

    I hope these are breakthrough clues.

    Googling for the "wpa_supplicant start" error I'm only getting a handful of hits, including the below, from this forum

    http://www.fedoraforum.org/forum/sho...d.php?t=197142

    It says that it was resolved by starting the messagebus service BEFORE wpa_supplicant service. But for me, (re)starting my messagebus only got me out of X into console mode

    please help!
    Last edited by fashionhat; 23rd September 2008 at 10:03 PM. Reason: put a smilie in the wrong place (head of post)

  6. #6
    Join Date
    Jul 2005
    Location
    Ft Huachuca, AZ
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See if this helps. If using NetworkManager, these 2 services should be disabled, "Network" and "wpa_supplicant". The reason being, NM will control the network and start the wpa_supplicant as network.

    Mike

  7. #7
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Iron_Mike

    I followed your most recent instruction: disabled both "network" and "wpa_supplicant" (also rebooted)

    Now, the first 7 seconds after I restart the "NetworkManager" service, the second line in the right-click NM menu ("Enable Wireless") is not grayed out, the checkbox is checked and un/checkable. After about seven seconds it is again grayed out.

    Left-click drop-down now gives me four redundant "Wireless Networks" sections, with "wireless is disabled" in each of them (all grayed out)

    (since my last post i stuck in an rt73 usb card as well. So, it's these two cards, i think, times two (as NetworkManager doubles everything for some strange reason))

    Another thought: If I am getting an error trying to start the wpa_supplicant service, how likely is it that NetworkManager is running into the same error when it tries to start the wpa_supplicant service?

    EDIT: OK. This seems to answer the above question, in the negative:

    Code:
    /etc/init.d/wpa_supplicant status
    wpa_supplicant (pid 2059) is running...
    (apparently started by NetworkManager)

    still, all is gray.
    Last edited by fashionhat; 24th September 2008 at 01:20 PM. Reason: additional finding of my own, prior to anyone's reply (NM does start wpa_supplicant service apparently)

  8. #8
    Join Date
    Nov 2008
    Location
    Prague, CZ
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Resolved! :)

    Hey, fashionhat.

    It seems I found a solution how to fix the problem!
    I'm running F9 on Dell Latitude as well and recently encountered absolutely the same problem that you described in this topic.
    After several unsuccessful attempts to do some magic playing with services, config files, bla-bla-bla, I got mad and just angrily turned my laptop aside....
    Surprisingly I immediately realized that this was exactly what I needed to do - to turn the laptop aside, as I notices a small slider at its left side that switches the wifi on and off (hardwarily I suppose). And of course it was accidentally switched off!
    Try it yourself. Hope it'll be working for you as well!

    Alex.

  9. #9
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, wajda, for responding.

    Apologies to the forum for not returning to this thread sooner. So far, the only way I have found to keep the on-board WiFi disabled in the BIOS and, at the same time, have an external (removable) WiFi card enabled and working with NetworkManager, is to alter the NetworkManager source code.

    After not getting answers in this forum i inquired at the NetworkManager mailing list, and got the above information. I was told that NetworkManager code "honors" and checks the HAL killswitch, with no user option to make it NOT honor it (software author's decision).

    however, the author(s) were kind enough to share a quick hack of the source code to disable the honoring of the killswitch, which worked like a charm, making NetworkManager detect and control my removable WiFi card.

    ----

    in response to wajda's solution: Your physical toggle switch may produce the same HAL killswitch status as does my disabling the onboard WiFi in the BIOS -- just a guess.

    Thanks again

    Andrew

Similar Threads

  1. Network Manager connects with "auto eth 0"
    By piet85 in forum Servers & Networking
    Replies: 15
    Last Post: 2nd July 2009, 12:32 PM
  2. Replies: 4
    Last Post: 31st October 2007, 05:47 PM
  3. intel 3945 wireless connects but is "buggy"
    By extendedping in forum Hardware
    Replies: 1
    Last Post: 13th December 2006, 03:11 AM
  4. "Association request to the Driver failed" error with wpa_supplicant
    By snakeyes30 in forum Servers & Networking
    Replies: 1
    Last Post: 7th August 2006, 03:42 PM
  5. Replies: 0
    Last Post: 23rd May 2005, 04:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •