Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

wifi stopped working after kernel upgrade [RESOLVED]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
plut0
Apprentice
Apprentice
Posts: 272
Joined: Tue Dec 21, 2004 3:13 pm

wifi stopped working after kernel upgrade [RESOLVED]

  • Quote

Post by plut0 » Tue Jan 11, 2011 1:09 pm

I have been using my ath5k wireless card as an access point for some time now. Just yesterday I upgraded my kernel 2.6.28-hardened-r6 to kernel-2.6.36-hardened-r6 and now it is broke.

Apparently madwifi no longer works for ath5k and you are forced to use nl80211 under the newer kernel. For whatever reason the driver is throwing errors attempting to bring the NIC online.

I can add a virtual device without error:

Code: Select all

# iw dev wlan0 interface add ath0 type __ap
# iwconfig ath0
ath0      IEEE 802.11bg  Mode:Master  Tx-Power=off   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
When start hostapd I get the following errors:

Code: Select all

# /etc/init.d/hostapd start
 * Starting ath0
RTNETLINK answers: Unknown error 132
RTNETLINK answers: Unknown error 132
RTNETLINK answers: Unknown error 132
 *   Configuring wireless network for ath0
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device ath0 ; Operation not supported.
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device ath0 ; Operation not supported.
 *   ath0 does not support setting ESSID to "gentoo"
 *   Failed to configure wireless for ath0
 * ERROR:  cannot start hostapd as net.ath0 could not start
/etc/hostapd/hostapd.cfg:

Code: Select all

interface=ath0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
dump_file=/tmp/hostapd0.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ignore_broadcast_ssid=1
ssid=gentoo
hw_mode=g
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
auth_algs=1
wpa=0
/etc/conf.d/net

Code: Select all

mode_ath0=( "master" )
config_ath0=( "192.168.2.1/24" )
essid_ath0=( "gentoo" )
Last edited by plut0 on Wed Jan 12, 2011 3:45 pm, edited 1 time in total.
Top
plut0
Apprentice
Apprentice
Posts: 272
Joined: Tue Dec 21, 2004 3:13 pm

  • Quote

Post by plut0 » Wed Jan 12, 2011 3:45 pm

I fixed this, I had to start the interface as ad-hoc and let hostapd set it as a master. I also had to run rfkill to unblock the wireless.

/etc/conf.d/net:

Code: Select all

config_ath0=( "192.168.2.1/24" )
mode_ath0=( "ad-hoc" )
essid_ath0=( "gentoo" )
preup() {
  if [[ ${IFACE} == "ath0" ]]; then
    iw dev wlan0 interface add ${IFACE} type __ap
    rfkill unblock all
  fi
}
postdown() {
  if [[ ${IFACE} == "ath0" ]]; then
    iw dev ${IFACE} del
    iw dev mon.${IFACE} del
  fi
}
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy