c9a7 wireless: ath0 error, v7 vs v8? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > System Hardware

System Hardware Internal storage, motherboards, PCI cards, stuff inside the case.

Reply
 
Thread Tools Display Modes
  #1  
Old March 5th, 2010, 08:06
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default wireless: ath0 error, v7 vs v8?

I recently upgraded my FreeBSD server from FreeBSD v7 to v8. Everything seems to be working OK, except the Atheros-based wireless network card, which I had configured as an access point and which worked fine under v7 for several years.

The command:
Code:
# ifconfig ath0 up
works fine, but anything else returns an error message. For example
Code:
# ifconfig ath0 192.168.3.1
ifconfig: ioctl (SIOCAIFADDR): Invalid argument
or this:
Code:
# ifconfig ath0 ssid freebsdap mode 11g mediaopt hostap inet 192.168.0.1 netmask 255.255.255.0
ifconfig: SIOCS80211: Invalid argument
I asked about this on the freebsd-questions list, and all I got was the terse reply: wireless has changed from v7 to v8; see the handbook.

Well, I copied & pasted the ifconfig line above directly from the handbook! Further, it is not indicated, AFAICT, exactly what things have changed from v7 with regard to wireless.

Any ideas on what is going on here?
Reply With Quote
  #2  
Old March 5th, 2010, 12:07
lme@'s Avatar
lme@ lme@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Düsseldorf, Germany
Posts: 589
Thanks: 44
Thanked 181 Times in 90 Posts
Default

Wireless has changed from 7 to 8.
In 8 you need to create a virtual device first:
# ifconfig wlan0 create wlandev ath0 up
Then you configure wlan0 just like you configured ath0 in 7.x.
The entries for /etc/rc.conf are:
Code:
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"
That would setup wlan0 for use with DHCP and wpa_supplicant(8).

It would be very nice if you'd write a PR with send-pr(1) that the handbook needs to be updated.
Reply With Quote
The Following User Says Thank You to lme@ For This Useful Post:
cbrace (March 5th, 2010)
  #3  
Old March 5th, 2010, 12:37
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,838
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

a.k.a. Sticky: Important wireless networking change in FreeBSD 8
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #4  
Old March 5th, 2010, 19:03
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default

Thanks Imea@

Via the sticky that DD refers to above, I came to the ath manpage which sorted me out.

This works for me:
Code:
ifconfig wlan0 create wlandev ath0 wlanmode hostap
ifconfig wlan0 inet 192.168.3.1 mode 11g channel 2 ssid venus
The tricky bit is you can't set everything in one command, as I was doing under 7

I was already using a start file to initialise the interface, /etc/start_if.ath0, so I will just add those two lines to it. I assume it will also work under 8; will reboot shortly and find out.

I've never used send-pr, but I will give it a try.
Reply With Quote
Reply

Tags
wireless atheros

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
I got wireless working, but I get strange error messages at boot! Allamgir Networking 11 December 4th, 2011 06:43
gdm and ath0 conflict twantnix3 GNOME 15 September 19th, 2009 10:48
ath0 status: "no carrier" mjkerpan Networking 2 June 3rd, 2009 16:21
ath0 wifi, how is it to use it? raxeax Networking 9 February 20th, 2009 17:58
freebsd 7.0- Error Mounting /dev/acd0 on /dist: Input/output error (5) Lego Installing & Upgrading 52 November 30th, 2008 16:31


All times are GMT +1. The time now is 09:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0