User Tools

Site Tools


wireless

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wireless [2014/11/24 01:14] (current)
0.0.0.0 created
Line 1: Line 1:
 +====== 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|<​code>​0@@</​code>​}}
 +
 +==== Modules ====
 +Add the following module to load on boot:
 +
 +{{File|/​etc/​modules.autoload/​kernel-2.6|<​code>​1@@</​code>​}}
 +
 +==== Net ====
 +Add the following network configuration:​
 +
 +{{File|/​etc/​conf.d/​net|<​source lang="​bash">​
 +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"
 +</​source>​}}
 +
 +==== Hostapd ====
 +Install the {{Package|direct=yes|net-wireless/​hostapd}} package, and configure it as so:
 +
 +{{File|/​etc/​hostapd/​hostapd.conf|<​source lang="​ini">​
 +interface=ath0
 +bridge=br0
 +driver=nl80211
 +ssid=Jellybean
 +country_code=GBR
 +ieee80211d=1
 +hw_mode=g
 +channel=4
 +ieee80211n=1
 +wpa=3
 +wpa_passphrase=******
 +</​source>​}}
 +
 +Start hostapd up on boot:
 +{{Root|<​source lang="​bash">​
 +rc-update add hostapd default
 +</​source>​}}
wireless.txt · Last modified: 2014/11/24 01:14 by 0.0.0.0