====== Wireless ====== ===== Hardware ===== D-Link DWA-547 Rangebooster N 650 Desktop Adapter 06:00.0 Network controller: Atheros Communications, Inc. AR5416 802.11a/b/g/n Wireless PCI Adapter (rev 01) 32-bit PCI, 5V. ===== Configuration ===== ==== Kernel ==== {{Kernel|2.6.28-gentoo-r1|0@@}} ==== Modules ==== Add the following module to load on boot: {{File|/etc/modules.autoload/kernel-2.6|1@@}} ==== Net ==== Add the following network configuration: {{File|/etc/conf.d/net| modules=("iproute2") - Local network, bridging ethernet and wireless bridge_br0=("") config_br0=("dhcp") fallback_br0=("10.0.0.2/24") - Automatically add these interfaces to the bridge when they start bridge_add_eth1=("br0") bridge_add_ath0=("br0") RC_NEED_br0=("net.eth1 net.ath0") - Enable spanning-tree brctl_br0=("stp on") - ports on the bridge need no explicit configuration config_eth1=("null") config_ath0=("null") - Wireless modules_ath0="iwconfig" mode_ath0="master" essid_ath0="Jellybean" channel_ath0=4 iwpriv_ath0="mode 3" }} ==== Hostapd ==== Install the {{Package|direct=yes|net-wireless/hostapd}} package, and configure it as so: {{File|/etc/hostapd/hostapd.conf| interface=ath0 bridge=br0 driver=nl80211 ssid=Jellybean country_code=GBR ieee80211d=1 hw_mode=g channel=4 ieee80211n=1 wpa=3 wpa_passphrase=****** }} Start hostapd up on boot: {{Root| rc-update add hostapd default }}