214f2
![]() |
|
|
|
|
|||||||
| Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Trying about a year now, but my box is impossible to detect my wifi.
dmesg | grep "urtw"Code:
urtw0: <vendor 0x0bda product 0x8187, class 0/0, rev 2.00/1.00, addr 2> on usbus3 urtw0: unknown RTL8187L type: 0x8000000 urtw0: rtl8187l rf rtl8225u hwrev none Code:
if_urtw_load="YES" wlan_wep_load="YES" wlan_ccmp_load="YES" wlan_tkip_load="YES" Code:
wlans_urtw0="wlan0" ifconfig_wlan0="WPA DHCP" ifconfig -aCode:
urtw0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether 00:15:af:1a:ab:c6 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:15:af:1a:ab:c6 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 6 (2437 MHz 11g) country US authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF txpower 0 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS roaming MANUAL bintval 0
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by sk8harddiefast; January 18th, 2011 at 15:41. |
|
#2
|
||||
|
||||
|
The unknown type error might not be a problem, just a warning.
WEP, CCMP, and TKIP should all be in the GENERIC kernel, don't need to be loaded unless you've got a custom kernel without them. You don't show /etc/wpa_supplicant.conf. Otherwise, looks like it's working. Does % ifconfig wlan0 list scanshow any access points? |
|
#3
|
||||
|
||||
|
I use custom kernel but I have them as option on it
MYKERNEL Code:
# Wireless NIC cards device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's options IEEE80211_SUPPORT_MESH # enable 802.11s draft support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm Code:
network={
ssid="Ember's Network"
scan_ssid=1
proto=WPA
pairwise=CCMP TKIP
key_mgmt=WPA-PSK
psk="freebsd8"
}
ifconfig wlan0 list scan Code:
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS awmn-7817 00:02:6f:38:0a:95 2 1M 47:38 100 E OTE 00:15:56:b5:df:ef 6 54M 77:68 100 EPSB PS: I want to make it as access point for my iphone.
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#4
|
||||
|
||||
|
Wpa_supplicant is for wireless clients. If you want to set up an access point using FreeBSD you need to use hostapd(8).
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
sk8harddiefast (January 17th, 2011) | ||
|
#5
|
||||
|
||||
|
A! ok! I will read it right now. I was not knowing this. I am completely noob on networks!
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#6
|
||||
|
||||
|
My /etc/hostapd.conf
Code:
interface=urtw0 driver=urtw logger_syslog=3 logger_syslog_level=3 logger_stdout=3 logger_stdout_level=3 debug=3 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=Ember's Network macaddr_acl=0 auth_algs=3 eapol_key_index_workaround=0 own_ip_addr=192.168.0.1 wpa=1 wpa_passphrase=freebsd8wifi wpa_key_mgmt=WPA-PSK WPA-EAP wpa_pairwise=TKIP CCMP Also remove wpa_supplicant.conf or I need it?
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#7
|
||||
|
||||
|
I don't think you need that line. And yes, you can remove wpa_supplicant.conf.
Handbook: 31.3.5 FreeBSD Host Access Points
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#8
|
||||
|
||||
|
OK. I removed wpa_supplicant.conf file.
According this I changed /etc/hostapd.conf file to Code:
interface=wlan0 debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=Ember's Network wpa=1 wpa_passphrase=freebsd8wifi wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP /etc/rc.d/hostapd forcestart Code:
Starting hostapd. Configuration file: /etc/hostapd.conf 1 errors found in configuration file '/etc/hostapd.conf'
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#9
|
||||
|
||||
|
It's probably tripping on the quote (') in the SSID's name.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#10
|
||||
|
||||
|
No. I deleted the quote but returned me the same error
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#11
|
||||
|
||||
|
I can't see anything wrong with it. It looks exactly the same as in the handbook. If you copy and pasted it there might be some trailing (non-printable ASCII) characters attached?
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#12
|
||||
|
||||
|
Yeap. I made copy / paste. I will write it again and I will post the result.
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#13
|
||||
|
||||
|
You can always test a script by running it like
sh -x /etc/rc.d/whatever and sh -xv /etc/rc.d/whatever remember ..
__________________
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 Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#14
|
||||
|
||||
|
Quote:
Now: Code:
Starting hostapd. Configuration file: /etc/hostapd.conf bsd_init: interface wlan0 does not existbsd driver initialization failed. rmdir[ctrl_interface]: No such file or directory I tried driver=bsd or driver=urtw but didn't work! Quote:
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by sk8harddiefast; January 17th, 2011 at 23:22. |
|
#15
|
|||
|
|||
|
For me,
# /etc/rc.d/netif restart works for restarting the network on a FreeBSD machine. YMMV.
__________________
Torfinn |
|
#16
|
|||
|
|||
|
Quote:
# ifconfig wlan0 create wlandev urtw0 wlanmode ap# hostapd -B /etc/hostapd.conf
|
|
#17
|
||||
|
||||
ifconfig wlan0 create wlandev urtw0 wlanmode apReturn to me: Code:
ifconfig: create: bad value
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; January 18th, 2011 at 16:55. |
|
#18
|
|||
|
|||
|
Quote:
Last edited by bschmidt; January 18th, 2011 at 14:10. Reason: typo |
|
#19
|
||||
|
||||
|
That's a good reason that I never made it. Ok. I will wait an update of the driver that will support hostapd. For now is solved.
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] lsof : Unknown architecture | burkoff | Installation and Maintenance of FreeBSD Ports or Packages | 10 | January 11th, 2012 08:56 |
| Netgear(WG111v2) WiFi USB adapter with RTL8187L | Seeker | Peripheral Hardware | 14 | November 21st, 2011 06:38 |
| unknown using hard drive | feriz | GNOME | 4 | December 3rd, 2010 01:24 |
| Unknown modifier 'u' using pkg_version | hansaplast | Installation and Maintenance of FreeBSD Ports or Packages | 2 | February 1st, 2010 12:23 |
| [Solved] (grub) FBSD + WinXP - Filesystem type unknown | thehobbit | Installing & Upgrading | 10 | December 18th, 2009 05:49 |