10d03 [Solved] wireless connection problem - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Mobile Computing

Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Reply
 
Thread Tools Display Modes
  #1  
Old January 25th, 2010, 23:14
revanthedarth revanthedarth is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default wireless connection problem

I'm not sure if this is the right place to ask, but what the hell.

I've been trying to connect my laptop to my wireless network. I've searched the net, found something useful but not useful enough, and freebsd handbook seems outdated. That's the most useful page:
http://www.freebsd.org/doc/handbook/...-wireless.html

Anyway, i'll try to explain what i did step by step

1- Added if_ath_load="YES" to /boot/loader.conf. My laptop uses that driver.
2- Created a clone-device:
ifconfig wlan0 create wlandev ath0
3- Activated it:
ifconfig wlan0 up
4- Scanned for the networks:
ifconfig wlan0 list scan
5- Found mine. Then i fixed the /etc/rc.conf file like that:
Code:
ifconfig_ath0="bssid xx:xx:xx:xx:xx:xx netmask 255.255.255.255 authmode shared wepmode on weptxkey 1 wepkey 1:myweppassw DHCP"
(That xx:xx part is the BSSID i noted when scanning, i guess that's mac address )
I'm using WEP to encrypt data.
6- I type
/etc/rc.d/netif start
That's the output:
Code:
ifconfig: SIOCS80211: Invalid argument
Starting Network Io0 ath0.
Io0: flags=8049<UP,LOOPBACK, RUNNING, MULTICAST> metric 0 mtu 16384
   options=3<RXCSUM, TXCSUM>
   ...(Some more Io0 information, i can post if necessary)
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether xx:xx:xx:xx:xx:xx
     media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
     status: associated
Then, ifconfig wlan0 brings me status:no carrier although ifconfig ath0 gives me status:associated. But i can't ping any computers on that network or even the modem.

What do you suggest?

Last edited by DutchDaemon; January 25th, 2010 at 23:32. Reason: I suggest using some tags...
Reply With Quote
  #2  
Old January 26th, 2010, 04:47
indiocolifa indiocolifa is offline
Junior Member
 
Join Date: Mar 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

Look I didn't follow the handbook as didn't worked for me. My driver is wpi (using R8.0-p2, i386):

My loader.conf:

Code:
if_wpi_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_tkip_load="YES"
wlan_ccmp_load="YES"
My /etc/rc.conf:

Code:
wlans_wpi0="wlan0"
ifconfig_wlan0="ssid ITCHIES DHCP WPA"
I'm using WPA authentication, but look if the wlans_<iface> line can help you. I got WLAN carrier with that rc.conf.
Reply With Quote
The Following User Says Thank You to indiocolifa For This Useful Post:
revanthedarth (January 26th, 2010)
  #3  
Old January 26th, 2010, 09:44
revanthedarth revanthedarth is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I fixed those but it still doesn't work.
/boot/loader.conf
Code:
if_ath_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
/etc/rc.conf
Code:
wlans_ath0="wlan0"
ifconfig_ath0="ssid aztech netmask 255.255.255.0 authmode shared wepmode on weptxkey 1 wepkey 1:aabbccddee DHCP"
ifconfig gives me
Code:
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether xx:xx:xx:xx:xx:xx
     media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
     status: associated
*some stuff about fwe0, fwip0, lo0*
wlan0: flags=8802<BROADCAST, SIMPLEX, MULTICAST> metric 0 mtu 1500 ether (same mac address as ath0)
     media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
     status: no carrier
     ssid "" channel 1 (2412 Mhz 11b)
     regdomain 96 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 1 wme burst bintval 0
I think i'm going to try WPA too.
Reply With Quote
  #4  
Old January 26th, 2010, 11:28
bschmidt bschmidt is offline
Member
 
Join Date: Oct 2009
Location: Schwandorf, Germany
Posts: 298
Thanks: 0
Thanked 39 Times in 28 Posts
Default

Quote:
Originally Posted by revanthedarth View Post
Code:
wlans_ath0="wlan0"
ifconfig_ath0="ssid aztech netmask 255.255.255.0 authmode shared wepmode on weptxkey 1 wepkey 1:aabbccddee DHCP"
Try replacing ifconfig_ath0 with ifconfig_wlan0.
Reply With Quote
The Following User Says Thank You to bschmidt For This Useful Post:
revanthedarth (January 26th, 2010)
  #5  
Old January 26th, 2010, 11:37
oomka oomka is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
Default

maybe my case will help you to solve this.
i'm running 8.0-RELEASE and i have built-in wireless card based on Atheros chipset and my router acts as DHCP server, so i made it this way:

create interface wlan0:

laptop# ifconfig wlan0 create wlandev ath0

and add following lines to my /etc/rc.conf
Code:
wlans_ath0="wlan0"
ifconfig_wlan0="DHCP WPA"
i didn't add any wireless stuff to /boot/loader.conf

next, created file /etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
   ssid="HomeNet"
   scan_ssid=1
   proto=RSN
   key_mgmt=WPA-PSK
   pairwise=CCMP
   group=CCMP
   psk="mypassword"
reading wpa_supplicant.conf manual helps a lot.

finally starting wireless connection:

laptop# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
option -B makes the process daemonize, -c points to config file

checking whether it's up:
Code:
laptop% ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   ether 00:22:5f:b4:cf:a5
   inet 192.168.0.6 netmask 0xffffff00 broadcast 192.168.0.255
   media: IEEE 802.11 Wireless Ethernet OFDM/48Mbps mode 11g
   status: associated
   ssid HomeNet channel 6 (2437 Mhz 11g) bssid 00:24:01:b1:ff:c4
   regdomain 96 indoor ecm authmode WPA2/802.11i privacy ON
   deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7
   scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
   roam:rate 5 protmode CTS wme burst roaming MANUAL
yep, we're up.
check it out, maybe it will be useful to you.
Reply With Quote
The Following 2 Users Say Thank You to oomka For This Useful Post:
revanthedarth (January 26th, 2010), x1101 (February 1st, 2010)
  #6  
Old January 26th, 2010, 13:09
revanthedarth revanthedarth is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thank you all, you just saved a FreeBSD n00b I was about to install ubuntu server edition
Reply With Quote
  #7  
Old February 1st, 2010, 02:43
x1101 x1101 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I would like to echo raventhedarth's statements. I had been searching for literally hours trying to figure out how to get my wireless working on my netbook, now it does. Thanks
Reply With Quote
Reply

Tags
connection, freebsd, internet, wireless

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
How do I establish wireless connection from in home router? unixdude Networking 6 August 9th, 2010 15:40
[Solved] FreeBSD wireless connection failed. curses Networking 10 July 10th, 2010 16:51
[Solved] wireless connection inux Networking 5 January 5th, 2010 19:30
Weird wireless connection problem: I have to do weird series of commands curses Networking 0 December 26th, 2009 01:12
wireless connection keeps disconnecting TomAmundsen Networking 1 July 19th, 2009 03:15


All times are GMT +1. The time now is 10:46.


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