Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]: wpa_supplicant confusion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Sat Nov 01, 2014 4:15 pm    Post subject: [SOLVED]: wpa_supplicant confusion Reply with quote

Hi, ALL,
I have a Dell laptop which has a Broadcom wireless network card.
I successfully installed Gentoo on it and I put wpa_supplicant with the GUI enabled on top of the X/KDE.

The problem is that even though it connects to my network and everything works, wpa_supplicant GUI does not work. Trying to pull the "Adapter" combo box does not show anything. It also says "Status: Could not get status from wpa_supplicant".

Now in the wpa_supplicant documentation it is stated that Broadcom cards are not supported.

Does this mean I'm out of luck with wpa_supplicant GUI?

Thank you.


Last edited by ONEEYEMAN on Wed Nov 05, 2014 2:37 am; edited 1 time in total
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Nov 01, 2014 4:56 pm    Post subject: Reply with quote

First, you must be sure that your card is supported by the Linux kernel, the good module and firmware files loaded. See http://wireless.kernel.org/. Otherwise, you can use the broadcom-sta module. Your wireless card must work properly before try to connect.

Where did it say that wpa_supplicant do not support Broadcom wireless cards?
_________________
Paul
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Sat Nov 01, 2014 6:04 pm    Post subject: Reply with quote

Logicien,
The card is supported and it is working properly. I'm writing it from this same laptop.
This link says that the b43 driver, which I'm using is not supported.

It does say however, that mac80211 drivers are supported.

Also following is I think relevant:

Code:

IgorDellGentoo igor # wpa_supplicant -h
wpa_supplicant v2.0
Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)

usage:
  wpa_supplicant [-BddhKLqqstuvW] [-P<pid file>] [-g<global ctrl>] \
        -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] [-p<driver_param>] \
        [-b<br_ifname>] [-f<debug file>] [-e<entropy file>] \
        [-o<override driver>] [-O<override ctrl>] \
        [-N -i<ifname> -c<conf> [-C<ctrl>] [-D<driver>] \
        [-p<driver_param>] [-b<br_ifname>] ...]

drivers:
  wext = Linux wireless extensions (generic)
  nl80211 = Linux nl80211/cfg80211
  wired = Wired Ethernet driver
options:
  -b = optional bridge interface name
  -B = run daemon in the background
  -c = Configuration file
  -C = ctrl_interface parameter (only used if -c is not)
  -i = interface name
  -d = increase debugging verbosity (-dd even more)
  -D = driver name (can be multiple drivers: nl80211,wext)
  -e = entropy file
  -f = log output to debug file instead of stdout
  -g = global ctrl_interface
  -K = include keys (passwords, etc.) in debug output
  -t = include timestamp in debug messages
  -h = show this help text
  -L = show license (BSD)
  -o = override driver parameter for new interfaces
  -O = override ctrl_interface parameter for new interfaces
  -p = driver parameters
  -P = PID file
  -q = decrease debugging verbosity (-qq even less)
  -u = enable DBus control interface
  -v = show version
  -W = wait for a control interface monitor before starting
  -N = start describing new interface
example:
  wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
IgorDellGentoo igor #


Thank you.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Nov 01, 2014 7:05 pm    Post subject: Reply with quote

b43 depend on
Code:
depends: bcma,ssb,pcmcia,mac80211,led-class,mmc_core,cfg80211,rng-core

Do you have all those dependencies available compiled in modules when possible?

Because b43 depend on mac80211, wpa_supplicant should be able to use it. Do you use wpa_supplicant with the -D wext or -D nl80211 driver? You should try each of them separately.

Before going to broadcom-sta, be sure that your wpa_supplicant.conf is correct. Test wpa_supplicant in command line and not inside a boot service.
_________________
Paul
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Sat Nov 01, 2014 7:21 pm    Post subject: Reply with quote

Logicien,
I think you misunderstood the question I have. ;-)
On the system everything is installed correctly and everything configured correctly and works. I can access the Internet from the wireless card without any issues.
What does not work is wpa_supplicant GUI.

When I open wpa_supplicant GUI, what I think should happen is I should be able to select an adapter and then from the list of available networks select the one to which to connect.

Am I understanding correct?

Thank you.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Nov 01, 2014 7:30 pm    Post subject: Reply with quote

Sorry, I effectively misunderstood your question. I do not use Wpa_supplicant Gui. Maybe it's looking for a wpa_supplicant active process to communicate with it with wpa_cli. Or it may start it's own wpa_supplicant process. You have to be sure in plus that you have the rights to manage the wireless connexions with Wpa_supplicant Gui.
_________________
Paul
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Sat Nov 01, 2014 7:44 pm    Post subject: Reply with quote

Logicien wrote:

Sorry, I effectively misunderstood your question.


That's OK.

Logicien wrote:

I do not use Wpa_supplicant Gui. Maybe it's looking for a wpa_supplicant active process to communicate with it with wpa_cli.


Code:

IgorDellGentoo igor # ps aux |grep wpa
root      1975  0.0  0.0  35568  1524 ?        Ss   Oct22   0:14 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -W -B -i wlan0 -P /var/run/wpa_supplicant-wlan0.pid
root      1982  0.0  0.0  11064   532 ?        Ss   Oct22   0:09 /usr/bin/wpa_cli -a /etc/wpa_supplicant/wpa_cli.sh -p /var/run/wpa_supplicant -i wlan0 -P /var/run/wpa_cli-wlan0.pid -B
igor      6607  0.0  1.4 243732 30112 ?        S    Oct24   6:03 /usr/bin/wpa_gui -session 101431a0149152000140756397100000022628169_1413782999_14
root     21813  0.0  0.0   8992   920 pts/1    S+   15:45   0:00 grep --colour=auto wpa

The wpa_cli process is running.

Logicien wrote:

Or it may start it's own wpa_supplicant process.


Not according to the "ps" output above.

Logicien wrote:

You have to be sure in plus that you have the rights to manage the wireless connexions with Wpa_supplicant Gui.


Thats an interesting suggestion. How do I check that?
Hopefully someone else will chime in and help ;-)

Thank you.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Nov 01, 2014 7:51 pm    Post subject: Reply with quote

Start Wpa_supplicant Gui from command line like this
Code:
sudo wpa_supplicant_gui

or whatever Wpa_supplicant Gui command is. Sudo should give you the root permissions on it. Generally a normal user must be in the netdev group to be able to manage network connexions. So add your normal user in this group if not.
_________________
Paul
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Sat Nov 01, 2014 8:07 pm    Post subject: Reply with quote

Logicien,

You are correct. I didn't have permission and running from root worked.
So, now could you please confirm that all I need to do is run below command

Code:

usermod -a -G netdev


which will keep an existing groups and just adds the user to netdev?

Thank you.

P.S.: This group should probably be listed in the Handbook part 1.11a. ;-)
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Nov 01, 2014 8:23 pm    Post subject: Reply with quote

First, check in which groups is your user
Code:
id username

where username is ... the name of the user you are working with Wpa_supplicant Gui. Than if not in the netdev group add it
Code:
sudo usermod -a -G netdev username

Do not forget to restart your X session.

I cannot confirm that being in the netdev group, you user will have the root permissions as sudo give. If it's not working, you can create a desktop icon using sudo to start Wpa_supplicant Gui.
_________________
Paul
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Sat Nov 01, 2014 8:27 pm    Post subject: Reply with quote

Logicien,
Code:

IgorDellGentoo igor # id igor                 
uid=1000(igor) gid=1000(igor) groups=1000(igor),10(wheel),18(audio),19(cdrom),85(usb),100(users)
IgorDellGentoo igor # usermod -a -G netdev igor
usermod: group 'netdev' does not exist


Looks like the group does not exist.

Thank you.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Nov 01, 2014 8:37 pm    Post subject: Reply with quote

The page wpa_supplicant - Gentoo Wiki say how to have sufficiant previleges 2.2 Using wpa_gui as normal user.
_________________
Paul
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2769

PostPosted: Wed Nov 05, 2014 2:37 am    Post subject: Reply with quote

That fixed it.

Thanx.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum