View previous topic :: View next topic |
Author |
Message |
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Wed Apr 23, 2014 4:58 pm Post subject: Gentoo on wm8850 SoC with ARM A9 processor - 2 - WiFi |
|
|
With my self compiled kernel 3.13.0-rc8 I see after booting the wlan0 when entering
the ifconfig -a command ( or iwconfig command )
But when I call wpa_supplicant with -Dwext option I get the uninformative
error/status message "No drivers enabled".
I work with a USB Ralink WiFi adapter and normally under other Linux
distribution I have no problem ( using the same kernel )
lsmod shows me the usual list of modules I am accustomed to see under
other Linux distributions. _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Apr 24, 2014 12:40 pm Post subject: Re: Gentoo on wm8850 SoC with ARM A9 processor - 2 - WiFi |
|
|
wkt wrote: | [...] when I call wpa_supplicant with -Dwext option I get the uninformative error/status message "No drivers enabled". |
wkt ... this is probably due to the ralink driver being 'nl80211' and not 'wext' (though thats a guess as you haven't provided details of the card). So, try with '-Dnl80211' ... or, enable CONFIG_CFG80211_WEXT (the wext compatability layer for nl80211) in the kernel.
wkt wrote: | I work with a USB Ralink WiFi adapter and normally under other Linux distribution I have no problem (using the same kernel) |
I assume the card uses rt2800usb.
best ... khay |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Thu Apr 24, 2014 2:49 pm Post subject: Re: Gentoo on wm8850 SoC with ARM A9 processor - 2 - WiFi |
|
|
[quote="khayyam"][quote="wkt"][...] when I call wpa_supplicant with -Dwext option I get the uninformative error/status message "No drivers enabled".[/quote]
wkt ... this is probably due to the ralink driver being 'nl80211' and not 'wext' (though thats a guess as you haven't provided details of the card). So, try with '-Dnl80211' ... or, enable CONFIG_CFG80211_WEXT (the wext compatability layer for nl80211) in the kernel.
[quote="wkt"]I work with a USB Ralink WiFi adapter and normally under other Linux distribution I have no problem (using the same kernel)[/quote]
I assume the card uses [url=http://wireless.kernel.org/en/users/Drivers/rt2800usb]rt2800usb[/url].
best ... khay[/quote]
Thanks for your effort.
The internal WLAN card in my netbook cannot be used at this moment by me. So I use a Ralink USB WiFi adapter.
So this rt2800usb appears in my lsmod list correctly. nl80211 doesnt appear in lsmod list if I remember correctly.
But cfg80211 does ! I also had tried -Dcfg80211 but this gave the same error message as Dwext.
In the kernel .config file I have done e.g. these settings
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_WEXT_PRIV=y
CONFIG_CFG80211=m
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_WEXT=y
CONFIG_RT2800USB=m
CONFIG_RT2800USB_RT33XX=y
CONFIG_RT2800USB_RT35XX=y
CONFIG_RT2800USB_RT53XX=y
CONFIG_RT2800USB_UNKNOWN=y
CONFIG_RT2800_LIB=m _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Apr 24, 2014 7:36 pm Post subject: Re: Gentoo on wm8850 SoC with ARM A9 processor - 2 - WiFi |
|
|
wkt wrote: | The internal WLAN card in my netbook cannot be used at this moment by me. So I use a Ralink USB WiFi adapter. So this rt2800usb appears in my lsmod list correctly. |
wkt ... and is the rt2870.bin firmware installed?
wkt wrote: | nl80211 doesnt appear in lsmod list if I remember correctly. But cfg80211 does ! I also had tried -Dcfg80211 but this gave the same error message as Dwext. |
"cfg80211" is the new "netlink" (nl80211) but the driver for wpa_supplicant is called 'nl80211' ... you must use either '-Dwext' or '-Dnl80211'. However, as you have CFG80211_WEXT enabled this can not be the cause of your issues. It has to be missing firmware, or some other issue.
best ... khay |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Fri Apr 25, 2014 1:18 pm Post subject: |
|
|
The rt2870.bin is in /lib/firmware ( as usaual ).
It is puzzling that with other Linux systems running ( e.g. Picuntu, Debian, Fedora, Raspian... )
I have no problem using wpa_supplicant with WiFi over this Ralink USB stick.
wpa_supplicant version is 2.1 - I think to remember that I simply emerge-d it. _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Apr 25, 2014 1:53 pm Post subject: |
|
|
wkt wrote: | It is puzzling that with other Linux systems running ( e.g. Picuntu, Debian, Fedora, Raspian... ) I have no problem using wpa_supplicant with WiFi over this Ralink USB stick. |
wkt ... that may be the case, but you're not really providing any information which might help give some idea of what the issue is, and due to your xorg-server issue I suspect the stage3 you used is the root cause. I'd asked previously for the output of 'emerge --info' as this would give some clue as to why 'x86-interix' was not met as 'DEPEND', so please do so. Also, the output of 'emerge -pv wpa_supplicant' would help, plus any network configuration in /etc/conf.d/net, how your using wpa_supplicant, etc, etc ... basically all information required to help troubleshoot the issue. Saying "it works with Picuntu, Debian, Fedora, Raspian" is not information that is useful to the issue at hand, and unless you provide useful information I, or we, can't help.
best ... khay |
|
Back to top |
|
|
Maitreya Guru
Joined: 11 Jan 2006 Posts: 445
|
Posted: Fri Apr 25, 2014 3:05 pm Post subject: |
|
|
Khay is right.
Without SOME information we are just guessing as to how and what.
Try to paste your dmesg and emerge --info
Especially if you are on a alternative architecture. |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Fri Apr 25, 2014 5:18 pm Post subject: |
|
|
1. output from emerge --info
Portage 2.1.11.62 (, gcc-4.6.3, glibc-2.15-r3, 3.13.0-rc8-37588-gc4386ef-dirty armv7l)
=================================================================
System uname: Linux-3.13.0-rc8-37588-gc4386ef-dirty-armv7l-with-gentoo-2.2
KiB Mem: 512204 total, 450844 free
KiB Swap: 1048572 total, 1048572 free
Timestamp of tree: Sun, 20 Apr 2014 14:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p45
dev-lang/python: 2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.69
sys-devel/automake: 1.12.6, 1.14.1
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-mcpu=cortex-a9 -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -O2 -pipe -mfpu=neon -s"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=cortex-a9 -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -O2 -pipe -mfpu=neon -s"
DISTDIR="/mnt/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS=""
MAKEOPTS="-j1"
PKGDIR="/mnt/PACK"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/compil"
PORTDIR="/mnt/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X arm bindist cups directfb elibc_glibc neon nptonly python unicode"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
2. output from emerge -pv wpa_supplicant
These are the packages that would be merged, in order:
Calculating dependencies .... done!
[ebuild R ] net-wireless/wpa_supplicant-2.1-r1 USE="-ap -dbus -eap-sim -fasteap -gnutls -kernel_FreeBSD -kernel_linux -p2p -ps3 -qt4 -readline -selinux -smartcard -ssl -wimax -wps" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
* IMPORTANT: 12 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
3. content of /etc/con.d/net - I didnt really find the correct syntax for that : some say so, some say different
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /usr/share/doc/openrc*/net.example* and save your configuration
# in /etc/conf.d/net (this file :]!).
dns_domain_lo="wktDaheim"
config_eth0="192.168.178.5 netmask 255.255.255.0 brd 192.168.178.255"
routes_eth0="default via 192.168.178.1"
dns_servers_eth0="192.168.178.1 8.8.8.8 4.2.2.1"
###config_eth0="dhcp"
###modules="wpa_supplicant"
modules_wlan0=("wpa_supplicant")
wpa_supplicant_wlan0="-c /etc/wpa_supplicant.conf -Dwext"
###wpa_supplicant_wlan0="-c /etc/wpa_supplicant.conf -Dcfg80211"
config_wlan0=("dhcp")
channel_wlan0="11"
mode_wlan0="auto"
###wpa_supplicant_eth0="-Dwext" _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Apr 25, 2014 7:45 pm Post subject: |
|
|
wkt wrote: | Code: | [ebuild R ] net-wireless/wpa_supplicant-2.1-r1 USE="-ap -dbus -eap-sim -fasteap -gnutls -kernel_FreeBSD -kernel_linux -p2p -ps3 -qt4 -readline -selinux -smartcard -ssl -wimax -wps" 0 kB |
|
wtk ... ok, well, this would certainly cause wpa_supplicant to state "No drivers enabled" ... for CONFIG_DRIVER_NL80211, and CONFIG_DRIVER_WEXT to be enabled the 'kernel_linux' useflag has to be set. The above is building without support for even the most basic of features. The question is why, because I don't see anything under profiles/arch/arm, or in the 'emerge --info', that suggests 'kernel_linux' wouldn't be enabled as a useflag (after all, its a linux kernel). Can you provide the profile used? ... the output of:
Code: | # eselect profile list |
... you could enable the useflag in /etc/portage/package.use but the fact its not enabled suggests a deeper problem (as does the presence of 'x86-interix' as a DEPEND) so before I suggest how you might fix it its probably best to know how deep the rabbit hole goes (as it may be best to start from a new stage3).
wkt wrote: | 3. content of /etc/con.d/net - I didnt really find the correct syntax for that : some say so, some say different |
Well, the bash arrays are now unsupported, and you don't need do do anything with iwconfig when using wpa_supplicant, so I'd use something like the following (obviously wlan0 isn't going to work until wpa_supplicant is fixed):
Code: | config_eth0="192.168.178.5/24"
routes_eth0="default via 192.168.178.1"
dns_servers_eth0="192.168.178.1 8.8.8.8 4.2.2.1"
modules_wlan0="!plug !iwconfig wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211 -qq" # the '-qq' is "quiet", you can add '-dd' or '-ddd' for "debug".
config_wlan0="dhcp" |
best ... khay |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Sat Apr 26, 2014 11:36 pm Post subject: |
|
|
OK - I started with the rootfs stage3-armv7a_hardfp-20140112.tar.bz2 now.
I think wpa_supplicant works now almost.
This is what I get if I run /etc/init.d/net.wlan0 start
* Bringing up interface wlan0
* Starting wpa_supplicant on wlan0 ... [ ok ]
* Starting wpa_cli on wlan0 ... [ ok ]
* Backgrounding ... ...
WARNING net.wlan0 has started, but is inactive.
So the connection is not established. But with wpa_cli I get a nice list from
the scan_return command ( with my router ESSID ).
If I start wpa_supplicant with -d option I get
wpa_supplicant v2.0
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Priority group 0
id=0 ssid='wktWLAN'
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0x1f flags 0x0
netlink: Operstate: linkmode=1, operstate=5
wlan0: Own MAC address: 00:1f:1f:be:0d:bf
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=8
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=8
wlan0: Event SCAN_RESULTS (3) received
Received 860 bytes of scan results (2 BSSes)
wlan0: BSS: Start scan result update 1
wlan0: BSS: Add new id 0 BSSID 00:1f:3f:47:10:44 SSID 'wktWLAN'
wlan0: BSS: Add new id 1 BSSID 0e:96:d7:22:87:cc SSID 'WLANBERTNEU'
BSS: last_scan_res_used=2/32 last_scan_full=0
wlan0: New scan results available
wlan0: Selecting BSS from priority group 0
wlan0: 0: 00:1f:3f:47:10:44 ssid='wktWLAN' wpa_ie_len=24 rsn_ie_len=20 caps=0x11 level=-51
wlan0: skip RSN IE - GTK cipher mismatch
wlan0: reject due to mismatch with WPA/WPA2
wlan0: 1: 0e:96:d7:22:87:cc ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-59
wlan0: skip - SSID mismatch
wlan0: No suitable network found
wlan0: Setting scan request: 5 sec 0 usec
wlan0: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=8
wlan0: Event SCAN_RESULTS (3) received
Received 1466 bytes of scan results (3 BSSes)
wlan0: BSS: Start scan result update 2
wlan0: BSS: Add new id 2 BSSID c0:25:06:06:12:ee SSID 'WLANBERTNEU'
BSS: last_scan_res_used=3/32 last_scan_full=0
wlan0: New scan results available
wlan0: Selecting BSS from priority group 0
wlan0: 0: 00:1f:3f:47:10:44 ssid='wktWLAN' wpa_ie_len=24 rsn_ie_len=20 caps=0x11 level=-51
wlan0: skip RSN IE - GTK cipher mismatch
wlan0: reject due to mismatch with WPA/WPA2
wlan0: 1: 0e:96:d7:22:87:cc ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-57
wlan0: skip - SSID mismatch
wlan0: 2: c0:25:06:06:12:ee ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-79 wps
wlan0: skip - SSID mismatch
wlan0: No suitable network found
wlan0: Setting scan request: 5 sec 0 usec
wlan0: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=8
wlan0: Event SCAN_RESULTS (3) received
Received 1466 bytes of scan results (3 BSSes)
wlan0: BSS: Start scan result update 3
BSS: last_scan_res_used=3/32 last_scan_full=0
wlan0: New scan results available
wlan0: Selecting BSS from priority group 0
wlan0: 0: 00:1f:3f:47:10:44 ssid='wktWLAN' wpa_ie_len=24 rsn_ie_len=20 caps=0x11 level=-51
wlan0: skip RSN IE - GTK cipher mismatch
wlan0: reject due to mismatch with WPA/WPA2
wlan0: 1: 0e:96:d7:22:87:cc ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-69
wlan0: skip - SSID mismatch
wlan0: 2: c0:25:06:06:12:ee ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-83 wps
wlan0: skip - SSID mismatch
wlan0: No suitable network found
wlan0: Setting scan request: 5 sec 0 usec
wlan0: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=8
wlan0: Event SCAN_RESULTS (3) received
Received 1466 bytes of scan results (3 BSSes)
wlan0: BSS: Start scan result update 4
BSS: last_scan_res_used=3/32 last_scan_full=0
wlan0: New scan results available
wlan0: Selecting BSS from priority group 0
wlan0: 0: 00:1f:3f:47:10:44 ssid='wktWLAN' wpa_ie_len=24 rsn_ie_len=20 caps=0x11 level=-51
wlan0: skip RSN IE - GTK cipher mismatch
wlan0: reject due to mismatch with WPA/WPA2
wlan0: 1: 0e:96:d7:22:87:cc ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-63
wlan0: skip - SSID mismatch
wlan0: 2: c0:25:06:06:12:ee ssid='WLANBERTNEU' wpa_ie_len=22 rsn_ie_len=20 caps=0x11 level=-79 wps
wlan0: skip - SSID mismatch
wlan0: No suitable network found
wlan0: Setting scan request: 5 sec 0 usec
wlan0: Checking for other virtual interfaces sharing same radio (phy0) in event_scan_results
wlan0: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 30 seconds
wlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=SCANNING
wlan0: No keys have been configured - skip key clearing
wlan0: State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_wext_set_countermeasures
wlan0: No keys have been configured - skip key clearing
wlan0: BSS: Remove id 0 BSSID 00:1f:3f:47:10:44 SSID 'wktWLAN' due to wpa_bss_flush
wlan0: BSS: Remove id 1 BSSID 0e:96:d7:22:87:cc SSID 'WLANBERTNEU' due to wpa_bss_flush
wlan0: BSS: Remove id 2 BSSID c0:25:06:06:12:ee SSID 'WLANBERTNEU' due to wpa_bss_flush
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
netlink: Operstate: linkmode=0, operstate=6
wlan0: CTRL-EVENT-TERMINATING
Now I have no idea - the .conf file is the one which works with other systems. _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Apr 27, 2014 12:27 am Post subject: |
|
|
wkt wrote: | Code: | wlan0: 0: 00:1f:3f:47:10:44 ssid='wktWLAN' wpa_ie_len=24 rsn_ie_len=20 caps=0x11 level=-51
wlan0: skip RSN IE - GTK cipher mismatch
wlan0: reject due to mismatch with WPA/WPA2 |
|
wkt ... you'll have to provide your /etc/wpa_supplicant/wpa_supplicant.conf (remove the psk obviously). Could you also provide the output of the following:
Code: | # awk '{RS="Cell"}/wktWLAN/' <(iwlist wlan0 scan) |
... or using net-wireless/iw
Code: | # awk '{RS="Cell"}/wktWLAN/' <(iw dev wlan0 scan) |
best ... khay |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Sun Apr 27, 2014 4:29 pm Post subject: |
|
|
1. wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
# ctrl_interface_group=0
# update_config=1
network={
ssid="wktWLAN"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk="1234567890"
}
2. iwlist command output
02 - Address: 00:1F:3F:47:10:44
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=43/70 Signal level=-67 dBm
Encryption key:on
ESSID:"wktWLAN"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000003247b93cb
Extra: Last beacon: 480ms ago
IE: Unknown: 0007776B74574C414E
IE: Unknown: 010482848B96
IE: Unknown: 03010B
IE: Unknown: 2A0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32080C1218243048606C
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD0A0800280101000200FF0F
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
3. iw command output
TSF: 1840718901241 usec (21d, 07:18:3
freq: 2412
beacon interval: 100 TUs
capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
signal: -73.00 dBm
last seen: 1480 ms ago
Information elements from Probe Response frame:
SSID: WLANBERTNEU
Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
DS Parameter set: channel 1
Country: DE Environment: Indoor/Outdoor
Channels [1 - 13] @ 20 dBm
ERP: <no flags>
RSN: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
* Capabilities: (0x0000)
Extended supported rates: 24.0 36.0 48.0 54.0
HT capabilities:
Capabilities: 0x11ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT RX MCS rate indexes supported: 0-15
HT TX MCS rate indexes are undefined
HT operation:
* primary channel: 1
* secondary channel offset: no secondary
* STA channel width: 20 MHz
* RIFS: 1
* HT protection: no
* non-GF present: 1
* OBSS non-GF present: 0
* dual beacon: 0
* dual CTS protection: 0
* STBC beacon: 0
* L-SIG TXOP Prot: 0
* PCO active: 0
* PCO phase: 0
WPA: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: TKIP
* Authentication suites: PSK
WMM: * Parameter version 1
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
BSS 00:1f:3f:47:10:44(on wlan0)
TSF: 13623054628 usec (0d, 03:47:03)
freq: 2462
beacon interval: 100 TUs
capability: ESS Privacy ShortSlotTime (0x0411)
signal: -65.00 dBm
last seen: 480 ms ago
Information elements from Probe Response frame:
SSID: wktWLAN
Supported rates: 1.0* 2.0* 5.5* 11.0*
DS Parameter set: channel 11
ERP: Barker_Preamble_Mode
RSN: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
* Capabilities: (0x0000)
Extended supported rates: 6.0 9.0 12.0 18.0 24.0 36.0 48.0 54.0
WPA: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: TKIP
* Authentication suites: PSK
* Capabilities: (0x0000)
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
Hope you have an idea... _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Apr 27, 2014 5:06 pm Post subject: |
|
|
wkt wrote: | Code: | Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP |
|
wkt ... that is the reason ... the 'group' and 'pairwise' set in wpa_supplicant.conf are incorrect. Please try the following:
Code: | ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
update_config=1
eapol_version=2
fast_reauth=1
filter_ssids=1
network={
ssid="wktWLAN"
bssid=00:1F:3F:47:10:44
scan_freq=2462
scan_ssid=0
key_mgmt=WPA-PSK
proto=RSN
auth_alg=OPEN
pairwise=CCMP
group=TKIP
psk=1234567890
} |
.... note that I'm not quoting psk ... this is just incase your psk is at the max character string (63 chars).
HTH & best ... khay |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Sun Apr 27, 2014 10:11 pm Post subject: |
|
|
@kayyam
You may relax now - problem solved.
WiFi is now working.
I only had to add the " again around psk because
wpa_supplicant uttered a parsing error otherwise.
I kept your 1st line : but the syntax looks unbelievably
ugly... =DIR=... How the heck can that be deciphered...(?)
Or is it a typo ???
Thanks for great help - I would not have found the solution.
Remains the puzzle why my old conf file works with about
5-7 ( binary ) distros. _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Apr 27, 2014 11:25 pm Post subject: |
|
|
wkt wrote: | You may relax now - problem solved. WiFi is now working. |
wkt ... good.
wkt wrote: | I only had to add the " again around psk because wpa_supplicant uttered a parsing error otherwise. |
hmmmm ... well, it shouldn't need quoting, perhaps your psk is ASCII? It shouldn't have any non-alphanumeric chars in it. Anyhow, you can convert the ascii to psk like so ...
Code: | # wpa_passphrase wktWLAN abcdefghijklm12345
network={
ssid="wktWLAN"
#psk="abcdefghijklm12345"
psk=a7401677d90c0468add090eda4c02e744414a9050ac6cc60f1c5a0491e8d8df4
} |
... there is no reason not to quote it, as long as the length doesn't exceed 63 chars.
wkt wrote: | I kept your 1st line : but the syntax looks unbelievably ugly... =DIR=... How the heck can that be deciphered...(?) Or is it a typo ??? |
No, its correct. It provides both the 'DIR' and the 'GROUP', its just a more recent syntax, see 'man wpa_supplicant.conf'.
wkt wrote: | Thanks for great help - I would not have found the solution. Remains the puzzle why my old conf file works with about 5-7 ( binary ) distros. |
You're welcome. Doing a scan of the AP (as in the awk oneliner above) is useful for getting all data from the AP and figuring out what it supports/expects, so, having that data it was easy to figure out why the above error occurred. I can't explain why that wpa_supplicant.conf would work elsewhere, it shouldn't ...
best ... khay |
|
Back to top |
|
|
wkt n00b
Joined: 21 Apr 2014 Posts: 15
|
Posted: Mon Apr 28, 2014 2:05 pm Post subject: |
|
|
I forgot the following remark :
when I had config_wlan0="dhcp" in the file /etc/conf.d/net
I got no connection (!)
In ifconfig -a list entry I saw only a inet6 line - no inet line.
If I changed to static IP adresses it suddenly worked.
Do I have to start perhaps dhcpcd service/daemon ?
Is it installed already in stage3 ?
My studies/experiments with rc-update just start... _________________ Time isnt Money : Money is Time |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Apr 28, 2014 9:43 pm Post subject: |
|
|
wkt wrote: | when I had config_wlan0="dhcp" in the file /etc/conf.d/net I got no connection (!) In ifconfig -a list entry I saw only a inet6 line - no inet line. |
wkt ... not sure exactly why this is happening but you can try two ... or three ... things ...
/etc/conf.d/net
Code: | modules_wlan0="!plug !iwconfig wpa_supplicant dhcpcd"
enable_ipv6_wlan0="false" |
... and incase this is an issue of dhcpcd starting before net.wlan0 (due to it "providing net") ...
/etc/rc.conf
Code: | rc_dhcpcd_provide="!net" |
wkt wrote: | Do I have to start perhaps dhcpcd service/daemon? |
No, it is started as a dependency of net.wlan0, its also managed via /etc/wpa_supplicant/wpa_cli.sh
wkt wrote: | Is it installed already in stage3? |
dhcpcd? No, it needs to be emerged, if you don't have some client then it will use udhcpd from busybox. This is probably whats happening.
wkt wrote: | My studies/experiments with rc-update just start... |
Well, I'll explain runlevels ...
Code: | # mkdir /etc/runlevels/online
# rc-update -s add default online
# rc-update add net.wlan0 online
# rc-update add sshd online
# rc-update ntp-client online
# rc-update add iptables online
# rc online |
... thats a 'stacked' runlevel ... 'online' is stacked ('-s') on top of 'default'. Of course in this example 'default' doesn't have anything in its runlevel except those things required when the machine is booted (ie, its without network). Anyhow, you can create as many of these as you so wish, and with seperate config files if you need seperate connection methods, configuration, etc ...
Code: | # print -rl /etc/conf.d/net*
/etc/conf.d/net.eth0
/etc/conf.d/net.wlan0.adhoc
/etc/conf.d/net.wlan0.hostap
/etc/conf.d/net.wlan0.mesh
/etc/conf.d/net.wlan0.online
/etc/conf.d/net.wlan0.pLp
/etc/conf.d/net.wlan0.ppp |
... then from the bootprompt (grub, or what have you) you can add 'softlevel=online', or 'softlevel=foo', etc, and init will boot you to that runlevel (so menu entries can be made for various runlevels).
So, as Micheal Cain says "not a lot of people know that" :)
best ... khay |
|
Back to top |
|
|
|
|
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
|
|