[SOLVED] Can't enable wifi during boot time

Issues related to configuring your network
Post Reply
morison20
Posts: 2
Joined: 2015/05/21 13:16:41

[SOLVED] Can't enable wifi during boot time

Post by morison20 » 2015/05/21 15:04:04

Hi,
I have recently switched from Ubuntu to CentOS. I am trying to enable usb wlan, TP-link TL-WN722N (Atheros AR9271) during boot time. I am following instructions from http://wiki.centos.org/HowTos/Laptops/WpaSupplicant. The system enables wlan during boot time, but doesn't connect to the access point. It only connects after I issue the following commands-

Code: Select all

service wpa_supplicant restart
service network restart
I found out that there are no /etc/init.d/wpa_supplicant and /etc/init.d/messagebus at /etc/init.d. So, creating /etc/init.d/prepnet file changes nothing.

How can I solve this issue?

boot log:

Code: Select all

[    5.935763] cfg80211: World regulatory domain updated:
[    5.935769] cfg80211:  DFS Master region: unset
[    5.935771] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    5.935774] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    5.935776] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    5.935778] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    5.935780] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[    5.935782] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    5.935784] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    5.935786] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    5.935788] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    5.958362] usb 1-7: ath9k_htc: Firmware htc_9271.fw requested
[    5.958494] usbcore: registered new interface driver ath9k_htc
[    6.370919] usb 1-7: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[    6.569040] type=1305 audit(1432220173.610:4): audit_pid=418 old=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
[    6.609915] ath9k_htc 1-7:1.0: ath9k_htc: HTC initialized with 33 credits
[    6.882171] ath9k_htc 1-7:1.0: ath9k_htc: FW Version: 1.3
[    6.882178] ath: EEPROM regdomain: 0x809c
[    6.882180] ath: EEPROM indicates we should expect a country code
[    6.882183] ath: doing EEPROM country->regdmn map search
[    6.882186] ath: country maps to regdmn code: 0x52
[    6.882189] ath: Country alpha2 being used: CN
[    6.882191] ath: Regpair used: 0x52
[    7.042850] ieee80211 phy0: Atheros AR9271 Rev:1
[    7.042881] cfg80211: Calling CRDA for country: CN
[    7.054354] systemd-udevd[372]: renamed network interface wlan0 to wlp0s29f7u8
[    7.054574] cfg80211: Regulatory domain changed to country: CN
[    7.054577] cfg80211:  DFS Master region: unset
[    7.054579] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.054581] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.054583] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2300 mBm), (N/A)
[    7.054585] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[    7.054587] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[    7.054589] cfg80211:   (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[    7.054591] cfg80211:   (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4400 mBm), (N/A)
[    7.054593] cfg80211:   (63720000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[    7.124322] cfg80211: Calling CRDA for country: BT
[    7.134228] cfg80211: Regulatory domain changed to country: BT
[    7.134233] cfg80211:  DFS Master region: unset
[    7.134234] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.134237] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.134239] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    7.134241] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm), (0 s)
[    7.134243] cfg80211:   (5490000 KHz - 5710000 KHz @ 80000 KHz), (N/A, 2700 mBm), (0 s)
[    8.638061] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.676974] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[    8.694818] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.318877] Ebtables v2.0 registered
[    9.331749] Bridge firewalling registered
[   10.023187] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   10.033248] r8169 0000:03:00.0 enp3s0: link down
[   10.033267] r8169 0000:03:00.0 enp3s0: link down
[   10.033452] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   11.215950] IPv6: ADDRCONF(NETDEV_UP): wlp0s29f7u8: link is not ready
[   11.758752] r8169 0000:03:00.0 enp3s0: link up
[   11.758768] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
[   16.887768] systemd-journald[343]: Received request to flush runtime journal from PID 1
Thanks in advance.
Last edited by morison20 on 2015/05/21 16:12:20, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't enable wifi during boot time

Post by TrevorH » 2015/05/21 15:17:39

What about systemctl enable wpa_supplicant.service
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

morison20
Posts: 2
Joined: 2015/05/21 13:16:41

Re: Can't enable wifi during boot time

Post by morison20 » 2015/05/21 15:39:03

TrevorH wrote:What about systemctl enable wpa_supplicant.service
It works! cool! Thanks a lot! :D

Post Reply