{"id":116,"date":"2008-11-08T13:15:58","date_gmt":"2008-11-08T13:15:58","guid":{"rendered":"https:\/\/www.bishnet.net\/tim\/blog\/?p=116"},"modified":"2010-11-11T13:01:41","modified_gmt":"2010-11-11T13:01:41","slug":"freebsd-with-netgear-wg311t","status":"publish","type":"post","link":"https:\/\/www.bishnet.net\/tim\/blog\/2008\/11\/08\/freebsd-with-netgear-wg311t\/","title":{"rendered":"FreeBSD with Netgear WG311T"},"content":{"rendered":"<p>A few days I wrote about my new <a href=\"https:\/\/www.bishnet.net\/tim\/blog\/2008\/11\/05\/a-new-router-soekris-draytek-and-nanobsd\/\">Soekris net5501 router<\/a>. In that post I mentioned that the only thing left to sort out was the wireless card. It turned out to be simpler to do than I thought.<\/p>\n<p>I decided to go for a <a href=\"http:\/\/www.netgear.com\/Products\/Adapters\/SuperGWirelessAdapters\/WG311T.aspx\">Netgear WG311T<\/a>. It&#8217;s a 802.11b\/g PCI card that&#8217;s compatible with FreeBSD through the Atheros chipset and ath driver, and it fits in the <a href=\"http:\/\/www.soekris.com\/net5501.htm\">net5501<\/a> just fine. As expected I had to remove the net5501 board from the case to attach the card, but that only involved undoing a handful of screws.<\/p>\n<p>Getting it working on FreeBSD was trivial. I added the following lines to my kernel configuration (they&#8217;re already there in GENERIC, I believe, but I built my own kernel because of the net5501):<\/p>\n<blockquote><p><code>device          wlan<br \/>\ndevice          wlan_ccmp<br \/>\ndevice          wlan_scan_ap<br \/>\ndevice          wlan_scan_sta<br \/>\ndevice          wlan_xauth<br \/>\ndevice          ath<br \/>\ndevice          ath_hal<br \/>\ndevice          ath_rate_sample<\/code><\/p><\/blockquote>\n<p>Then it was a simple case of initialising the card in <code>\/etc\/rc.conf<\/code>:<\/p>\n<blockquote><p><code>ifconfig_ath0=\"inet 1.2.3.4 netmask 255.255.255.0 ssid myssid mode 11g mediaopt hostap\"<br \/>\nipv6_ifconfig_ath0=\"1:2:3::4 prefixlen 64\"<\/code><\/p><\/blockquote>\n<p>And I also added <code>ath0<\/code> to <code>rtadvd_interfaces<\/code> and <code>dhcpd_interfaces<\/code>.<\/p>\n<p>With that done the final step was to configure hostapd through <code>\/etc\/hostapd.conf<\/code>:<\/p>\n<blockquote><p><code>interface=ath0<br \/>\ndebug=1<br \/>\nctrl_interface=\/var\/run\/hostapd<br \/>\nctrl_interface_group=wheel<br \/>\nssid=myssid<br \/>\ncountry_code=GB<br \/>\nwpa=2<br \/>\nwpa_passphrase=my passphrase<br \/>\nwpa_key_mgmt=WPA-PSK<br \/>\nwpa_pairwise=CCMP<\/code><\/p><\/blockquote>\n<p>This enables WPA2 using AES (rather than TKIP).<\/p>\n<p>Connecting clients was no problem. My laptop and my <a href=\"http:\/\/www.slimdevices.com\/\">squeezeboxes<\/a> all connected fine.<\/p>\n<p>One concern I had doing this was whether a PCI wireless card would have the same signal strength as a purpose access point. I seem to be getting the same signal power from this new setup as I did from my old 3com 802.11b access point. What does that tell me? I&#8217;m not sure. I would have expected technology to have come on a bit over the years. Maybe it has, but the fact that the card is lower powered balances it out? Regardless, it covers my whole house, so it&#8217;s not an issue.<\/p>\n<p>So now I&#8217;m done. I&#8217;ve switched off my last piece of old equipment. My power draw has dropped significantly, the noise levels have decreased, and I&#8217;m a happy geek with a cupboard full of shiny new stuff. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to get a Netgear WG311T to work on FreeBSD in a Soekris net5501.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[140,36,37,38,39],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-computing","category-freebsd","tag-freebsd","tag-netgear","tag-wg311t","tag-wpa","tag-wpa2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":8,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":342,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions\/342"}],"wp:attachment":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}