You are not logged in.

#1 2013-06-24 13:41:00

disjunkt
Member
From: Germany
Registered: 2013-06-23
Posts: 23

[Solved] Establishing a wireless internet connection

Hi there,

unfortunately I encounter some trouble establishing a wireless internet connction.

Netctl gets me the following output.

[root@CANB002 ~]# netctl start wireless-unibude
[ 7906.687928] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
[ 7906.693003] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
[ 7907.654391] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[ 7907.662115] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
[ 7910.712163] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
[ 7910.719982] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
[ 7923.360667] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[ 7923.368442] brcmsmac bcma0:0: brcms_ops_bbs_info_changed: qos enabled: true (implement)
[ 7923.991371] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
[ 7924.000176] brcmsmac bcma0:0: brcms_ops_bbs_info_changed: qos enabled: disassociated
Job for netctl@wireless\x2dunibude.service failed. See 'systemctl status netctl@wireless\x2dunibude.service' and 'journal -xn' for details.

[root@CANB002 ~]# systemctl status netctl@wireless\x2dunibude.service
netctl@wirelessx2dunibude.service - Networking for netctl profile wirelessx2dunibude
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)

After that journalctl get me

[root@CANB002 ~]# journalctl -xn
-- Logs begin at Sun 2013-06-23 17:34:02 CEST, end at Mon 2013-06-24 16:21:45 CEST. --
Jun 24 16:21:44 CANB002 kernel: brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
Jun 24 16:21:44 CANB002 kernel: brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
Jun 24 16:21:44 CANB002 kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 24 16:21:44 CANB002 dhcpcd[716]: wlp5s0: carrier acquired
Jun 24 16:21:44 CANB002 dhcpcd[716]: wlp5s0: carrier lost
Jun 24 16:21:44 CANB002 network[5213]: Failed to bring the network up for profile 'wireless-unibude'
Jun 24 16:21:44 CANB002 systemd[1]: netctl@wireless\x2dunibude.service: main process exited, code=exited, status=1/FAILURE
Jun 24 16:21:44 CANB002 systemd[1]: Failed to start Networking for netctl profile wireless-unibude.
-- Subject: Unit netctl@wireless\x2dunibude.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit netctl@wireless\x2dunibude.service has failed.
-- 
-- The result is failed.
Jun 24 16:21:44 CANB002 systemd[1]: Unit netctl@wireless\x2dunibude.service entered failed state.
Jun 24 16:21:45 CANB002 dhcpcd[716]: wlp5s0: waiting for carrier

This is the corresponding netctl profile:

/etc/netctl/wireless-unibude
----------------------------
Description='WPA encryptet network at home'
Interface=wlp5s0
Connection=wireless
Security=wpa

IP=dhcp

ESSID=001D73B3EA22
Key=#############

After that attemt had failed, I decided to try setting up the connection manually. Bringing up the wireless device seems to work fine as I get a satisfying response on my network scan.

[root@CANB002 ~]# ip link set wlp5s0 up
[ 10277.904145] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
[ 10277.912930] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
[root@CANB002 ~]# iw dev wlp5s0 scan
... (there are a few more networks, but this is the one I like to connect with)
BSS 00:1d:73:b3:ea:22(on wlp5s0)
	TSF: 966911679 usec (0d, 00:16:06)
	freq: 2442
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
	signal: 69.00 dBm
	last seen: 296 ms ago
	Information elements from Probe Response frame:
	SSID: 001D73B3EA22
	Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 
	DS Parameter set: channel 7
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: (0x0000)
	ERP: <no flags>
	Extended supported rates: 24.0 36.0 48.0 54.0 
	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
	HT capabilities:
		Capabilities: 0x104e
			HT20/HT40
			SM Power Save disabled
			RX HT40 SGI
			No RX STBC
			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: 7
		 * secondary channel offset: below
		 * STA channel width: any
		 * RIFS: 1
		 * HT protection: 20 MHz
		 * non-GF present: 0
		 * 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
	Overlapping BSS scan params:
		 * passive dwell: 20 TUs
		 * active dwell: 10 TUs
		 * channel width trigger scan interval: 300 s
		 * scan passive total per channel: 200 TUs
		 * scan active total per channel: 20 TUs
		 * BSS width channel transition delay factor: 5
		 * OBSS Scan Activity Threshold: 0.25 %
	Extended capabilities: HT Information Exchange Supported

That should denote that my network driver is working fine so far, shouldn't it? However I created a wpa_supplicant configuration file using wpa_passphrase and startet the wpa_supplicant, whitch lead to an error message saying some device is busy and an association request to a driver failed. So i figured that setting the driver flag for the wpa_supplicant would do the trick.

[root@CANB002 ~]# wpa_passphrase 001D73B3EA22 ############# >> /etc/wpa_supplicant/unibude.conf
[root@CANB002 ~]# wpa_supplicant -Dnl80211 -i wlp5s0 -c /etc/wpa_supplicant/unibude.conf
Successfully initialized wpa_supplicant
wlp5s0: SME: Trying to authenticate with 00:1d:73:b3:ea:22 (SSID='001D73B3EA22' freq=2442 MHz)
wlp5s0: Trying to associate with 00:1d:73:b3:ea:22 (SSID='001D73B3EA22' freq=2442 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
wlp5s0: Association request to the driver failed
[11812.255579] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[11812.261693] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
wlp5s0: Associated with 00:1d:73:b3:ea:22
wlp5s0: WPA: Key negotiation completed with 00:1d:73:b3:ea:22 [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to 00:1d:73:b3:ea:22 completed [id=0 id_str=]
[10897.299715] brcmsmac bcma0:0: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)

Et voilà! I'm connected to the internet. :-)

The question why I can't establish the same connection using netctl remains to be answered. I'm looking forward to your help.

Kind regards
Paul

Last edited by disjunkt (2013-06-24 23:24:09)

Offline

#2 2013-06-24 14:37:33

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved] Establishing a wireless internet connection

netctl isn't passing the needed arguments in its call to wpa_supplicant? Is there a way to control that?

EDIT: do you have any luck using the netctl-auto@<interface> service?

Last edited by cris9288 (2013-06-24 14:40:34)

Offline

#3 2013-06-24 15:11:30

disjunkt
Member
From: Germany
Registered: 2013-06-23
Posts: 23

Re: [Solved] Establishing a wireless internet connection

No, the netctl-auto@<interface>.service doesn't work neither. It seems like it produces not the correct link.

[root@CAN002 ~]# systemctl enable netctl-auto@wlp5s0.service
ln -s '/usr/lib/systemd/system/netctl-auto@.service' '/etc/systemd/system/multi-user.target.wants/netctl-auto@wlp5s0.service'

Offline

#4 2013-06-24 15:13:40

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: [Solved] Establishing a wireless internet connection

You can use the working wpa supplicant config together with netctl, see /etc/netctl/examples/wireless-wpa-config for more info.

Offline

#5 2013-06-24 16:08:38

disjunkt
Member
From: Germany
Registered: 2013-06-23
Posts: 23

Re: [Solved] Establishing a wireless internet connection

I just tried that, but still doesn't work. journalctl gets me the following output.

[root@CANB002 ~]# netctl start unibude2
...
...
...
[root@CANB002 ~]# journalctl -xn
-- Logs begin at Sun 2013-06-23 17:34:02 CEST, end at Mon 2013-06-24 20:03:59 CEST. --
Jun 24 20:03:58 CANB002 network[1374]: Failed to connect to non-global ctrl_ifname: wlp5s0  error: Connection refused
Jun 24 20:03:58 CANB002 network[1374]: Failed to connect to non-global ctrl_ifname: wlp5s0  error: Connection refused
Jun 24 20:03:59 CANB002 kernel: wlp5s0: deauthenticating from 00:1d:73:b3:ea:22 by local choice (reason=3)
Jun 24 20:03:59 CANB002 kernel: brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
Jun 24 20:03:59 CANB002 kernel: brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
Jun 24 20:03:59 CANB002 kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 24 20:03:59 CANB002 network[1374]: Failed to bring the network up for profile 'unibude2'
Jun 24 20:03:59 CANB002 systemd[1]: netctl@unibude2.service: main process exited, code=exited, status=1/FAILURE
Jun 24 20:03:59 CANB002 systemd[1]: Failed to start Networking for netctl profile unibude2.
-- Subject: Unit netctl@unibude2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit netctl@unibude2.service has failed.
-- 
-- The result is failed.
Jun 24 20:03:59 CANB002 systemd[1]: Unit netctl@unibude2.service entered failed state.

This is the config file:

/etc/netctl/unibude2
--------------------
Description='A wpa_supplicant configuration file based wireless connection'
Interface='wlp5s0'
Connection=wireless
Security=wpa-config
WPAConfig-File='/etc/wpa_supplicant/unibude.conf'
IP=dhcp
ESSID=001D73B3EA22

Last edited by disjunkt (2013-06-24 16:08:59)

Offline

#6 2013-06-24 17:10:23

disjunkt
Member
From: Germany
Registered: 2013-06-23
Posts: 23

Re: [Solved] Establishing a wireless internet connection

I tried to move the netctl config files to another directory and generate an new one using wifi-menu. The generated config file contains exactly the same information as my first config file wireless-unibude does. Just the order of the entrys varies slightly. Anyway I just tried it again using this config file and noticed, that the output of journalctl altered (dont even have a clue, why it did). To get you up to date, here is the current output from journalctl after trying to start the internetc connection using the config wireless-unibude or the newly generated wlp5s0-001D73B3EA22.

[root@CANB002 ~]# netctl start wlp5s0-001D73B3EA22
[ 4599.215336] brcmsmac bcma0:0: brcms_ops_bbs_info_changed: qos enabled: false (implement)
[ 4599.221160] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
[ 4600.225018] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[ 4600.230724] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
[ 4603.275069] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
[ 4603.283535] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
[ 4616.058450] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[ 4616.066941] brcmsmac bcma0:0: brcms_ops_bbs_info_changed: qos enabled: true (implement)
[ 4616.499075] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
[ 4616.505484] brcmsmac bcma0:0: brcms_ops_bbs_info_changed: qos enabled: false (implement)
Job for netctl@wireless\x2d001D73B3EA22.service failed. See 'systemctl status netctl@wireless\x2d001D73B3EA22.service' and 'journal -xn' for details.

[root@CANB002 ~]# journalctl -xn
-- Logs begin at Sun 2013-06-23 17:34:02 CEST, end at Mon 2013-06-24 21:03:46 CEST. --
Jun 24 21:03:45 CANB002 kernel: wlp5s0: associated
Jun 24 21:03:46 CANB002 network[4089]: WPA association/authentication failed for interface 'wlp5s0'
Jun 24 21:03:46 CANB002 kernel: wlp5s0: deauthenticating from 00:1d:73:b3:ea:22 by local choice (reason=3)
Jun 24 21:03:46 CANB002 kernel: brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
Jun 24 21:03:46 CANB002 kernel: brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
Jun 24 21:03:46 CANB002 kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 24 21:03:46 CANB002 network[4089]: Failed to bring the network up for profile 'wlp5s0-001D73B3EA22'
Jun 24 21:03:46 CANB002 systemd[1]: netctl@wlp5s0\x2d001D73B3EA22.service: main process exited, code=exited, status=1/FAILURE
Jun 24 21:03:46 CANB002 systemd[1]: Failed to start Networking for netctl profile wlp5s0-001D73B3EA22.
-- Subject: Unit netctl@wlp5s0\x2d001D73B3EA22.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit netctl@wlp5s0\x2d001D73B3EA22.service has failed.
-- 
-- The result is failed.
Jun 24 21:03:46 CANB002 systemd[1]: Unit netctl@wlp5s0\x2d001D73B3EA22.service entered failed state.

Offline

#7 2013-06-24 19:27:03

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved] Establishing a wireless internet connection

this line seems most significant to me.

Jun 24 21:03:46 CANB002 network[4089]: WPA association/authentication failed for interface 'wlp5s0'

Are you sure your security settings are correct? Are you using a hex key? If you are, some special quoting rules apply. In addition, browsing through the man page for netctl.profile, there's an option for setting the WPADriver to use for a specific profile. I think I would try that with your original profile, or the wpa_supplicant one that you used. Sorry if I'm not much help.

Offline

#8 2013-06-24 23:23:03

disjunkt
Member
From: Germany
Registered: 2013-06-23
Posts: 23

Re: [Solved] Establishing a wireless internet connection

Thats embarrassing, you're damn right, I got the security settings messed up somehow. :-( The config files that aren't using the wpa_supplicant config are working fine now. :-)

Setting the WPADriver wouldn't do anything as the nl80211 is one of the standard drivers, by the way.

So, thank you very much for your help indeed.

Offline

Board footer

Powered by FluxBB