DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2015
Peter_APIIT Peter_APIIT is offline
Shell Scout
 
Join Date: Jun 2008
Posts: 89
Thanked 0 Times in 0 Posts
Default Atheros Wifi Configuration Error

Dear All,

I'm tried to configure Atheros AR 5212 WIFI chipset access point but failed.

The /etc/hostname.ath0 configuration:
Quote:
inet 172.16.1.2 255.255.255.0 media autoselect mode 11g mediaopt hostap \
nwid "Hacker" wpa wpaprotos wpa2 wpaakms psk \
wpapsk $(wpa-psk "Hacker" "Password")
This configuration results error at below.
Here is the error from dmesg file:

Quote:
ath0 at pci1 dev1 function 0 "Atheros AR5212" rev 0x01pci_intr_map:bad interrupt pin 255: can't map interrupt
Besides, I'm also tried to configure it from terminal. It produces following error from this configuration.

Quote:
ifconfig ath0 192.168.1.2 255.255.255.0
Quote:
ifconfig: SIOCDIFADDR: Device not configured
What wrong with it? Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 26th June 2015
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,109
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Peter_APIIT View Post
I'm tried to configure Atheros AR 5212 WIFI chipset access point but failed.
It is customary to post the entire output of dmesg(8) when seeking support. One reason is that information about the version of the operating system will be provided. Wireless drivers, in particular, received frequent changes, so disclosing the version number is important when attempting to find out the root cause.

If I recall correctly, ath(4) has only recently supported configuration as an access point.

I highly recommend you read this thread on smart requests for support.
Quote:
The /etc/hostname.ath0 configuration:
Code:
inet 172.16.1.2 255.255.255.0 media autoselect mode 11g mediaopt hostap \
nwid "Hacker" wpa wpaprotos wpa2 wpaakms psk \
wpapsk $(wpa-psk "Hacker" "Password")
Three comments:
  • Is there a reason you are making configuration so complicated? The manpage for ath(4) for OpenBSD 5.7 provides a simple example for host configuration:
    Code:
    inet 192.168.1.1 255.255.255.0 
    mediaopt hostap 
    nwid mynwid 
    wpakey mywpakey
  • When first attempting configuration, starting with a simple configuration avoids all kinds of pain.
  • What is wpa-psk? This entire line:
    Code:
    wpapsk $(wpa-psk "Hacker" "Password")
    ...is syntactically incorrect.
Quote:
Here is the error from dmesg file:
Quote:
ath0 at pci1 dev1 function 0 "Atheros AR5212" rev 0x01pci_intr_map:bad interrupt pin 255: can't map interrupt
If this indeed is the error found in dmesg(8), you may be out of luck with this unknown version of the OS. Manufacturers can insert new overlays into the production process at different points, & not change the version number of the chip. To speculate any further will require more information than has been disclosed thus far.
Quote:
What wrong with it?
If this configuration comes from a howto found somewhere on the Internet, don't accept it as correct. Was any information provided as to what version of OpenBSD was used for testing? Was it ever correct for any version? Starting with information found in the manpages is always the best place to begin.

Last edited by ocicat; 26th June 2015 at 02:17 PM. Reason: corrected grammar
Reply With Quote
  #3   (View Single Post)  
Old 27th June 2015
Peter_APIIT Peter_APIIT is offline
Shell Scout
 
Join Date: Jun 2008
Posts: 89
Thanked 0 Times in 0 Posts
Default

Thanks ocicat point out that should starts from simple configuration. I had tried the configuration you posted here.
Code:
inet 192.168.1.1 255.255.255.0 
mediaopt hostap 
nwid mynwid 
wpakey mywpakey
Perhaps I'm should post the full dmesg here later.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi with atheros chipset AR9280 sws OpenBSD General 17 17th March 2011 03:58 PM
Atheros Wifi NetBSD on a Sparc64 granowski NetBSD General 1 27th September 2010 11:35 AM
postfix aliases configuration error xiphias FreeBSD Ports and Packages 5 5th June 2010 05:35 PM
Guide: Atheros ar5007 wifi cards in freebsd7 Dazhelpwiz FreeBSD Installation and Upgrading 3 16th June 2008 02:23 AM
Losing connection with Atheros wifi noonereallycares FreeBSD General 2 11th June 2008 03:57 AM


All times are GMT. The time now is 03:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick