|
wallabybob
|
 |
« on: August 23, 2010, 02:10:54 am » |
|
The FreeBSD 8.1 release notes say The run(4) driver for Ralink RT2700U/RT2800U/RT3000U USB 802.11agn devices has been added. The driver is in the source code tree but there is no man page for it.
I bought a Tenda W311U usb stick for under US$20 (after converting from local currency) and it was immediately recognised by the run driver on a FreeBSD 8.1 system. The driver source suggests it supports hostap mode (and station monitor, WDS and possibly others). I was able to initialise it in hostap mode in FreeBSD.
I copied the FreeBSD driver files (/boot/kernel/if_run.ko and if_run.ko.symbols to /boot/kernel on pfSense, kldload'd the driver, plugged in the NIC and the NIC was recognised by the run driver without problem.
On pfSense I edited /etc/inc/globals.inc to add run to the list of known wireless devices and /etc/inc/interfaces.inc to add run to the list of known interfaces with ALTQ support. Here are the diffs:
# diff -b -C 4 /etc/inc/globals.inc.orig /etc/inc/globals.inc *** /etc/inc/globals.inc.orig Mon Aug 23 16:16:13 2010 --- /etc/inc/globals.inc Mon Aug 23 16:17:05 2010 *************** *** 102,110 **** "captiveportal_element_sizelimit" => 1048576, "xmlrpcpath" => "/pfSense/xmlrpc.php", "embeddedbootupslice" => "/dev/ad0a", "services_dhcp_server_enable" => true, ! "wireless_regex" => "/^(ndis|wi|ath|an|ral|ural|iwi|wlan|rum|zyd|mwl|bwi|ipw|iwn|malo|uath|upgt|urtw|wpi)/", "help_base_url" => "/help.php" ); // Loop through and set vlan_long_frame VLAN_MTU --- 102,110 ---- "captiveportal_element_sizelimit" => 1048576, "xmlrpcpath" => "/pfSense/xmlrpc.php", "embeddedbootupslice" => "/dev/ad0a", "services_dhcp_server_enable" => true, ! "wireless_regex" => "/^(ndis|wi|ath|an|ral|ural|iwi|wlan|rum|run|zyd|mwl|bwi|ipw|iwn|malo|uath|upgt|urtw|wpi)/", "help_base_url" => "/help.php" ); // Loop through and set vlan_long_frame VLAN_MTU # diff -b -C 4 /etc/inc/interfaces.inc.orig /etc/inc/interfaces.inc *** /etc/inc/interfaces.inc.orig Mon Aug 23 16:16:24 2010 --- /etc/inc/interfaces.inc Mon Aug 23 16:18:30 2010 *************** *** 3183,3191 **** */ $capable = array("age", "ale", "an", "ath", "aue", "awi", "bce", "bfe", "bge", "dc", "de", "ed", "em", "ep", "fxp", "gem", "hme", "igb", "ipw", "iwi", "jme", "le", "msk", "mxge", "my", "nfe", ! "npe", "nve", "ral", "re", "rl", "rum", "sf", "sis", "sk", "ste", "stge", "txp", "udav", "ural", "vge", "vr", "wi", "xl", "ndis", "tun", "ovpns", "ovpnc", "vlan", "pppoe", "pptp", "ng", "l2tp", "ppp"); --- 3183,3191 ---- */ $capable = array("age", "ale", "an", "ath", "aue", "awi", "bce", "bfe", "bge", "dc", "de", "ed", "em", "ep", "fxp", "gem", "hme", "igb", "ipw", "iwi", "jme", "le", "msk", "mxge", "my", "nfe", ! "npe", "nve", "ral", "re", "rl", "rum", "run", "sf", "sis", "sk", "ste", "stge", "txp", "udav", "ural", "vge", "vr", "wi", "xl", "ndis", "tun", "ovpns", "ovpnc", "vlan", "pppoe", "pptp", "ng", "l2tp", "ppp"); #
Then I rebooted and was able to configure the wireless aspects of run0 (ssid, crypto, etc)
I'll report again after I've had an opportunity to exercise the device.
|