View | Details | Raw Unified | Return to bug 15588
Collapse All | Expand All

(-)a/docs/README.madwifi (+61 lines)
Line 0 Link Here
1
						-*- outline -*-
2
*		MADWIFI/wlanconfig & etcnet
3
4
Starting from 0.9.6, etcnet contains another approach
5
for handling atheros/madwifi cards, allowing more precise
6
control over various operational modes, including master one,
7
achieved by separate iface declarations for link/ieee802.11
8
and one or more enslaved link/ether (also called VAPs) layers.
9
This approach can be selected by TYPE set to `wlan' for enslaved
10
link/ether iface(s), other options in this mode could be:
11
HOST=<link/ieee802.11 iface name, i.e wifi0>
12
MODE=<adhoc|ap|monitor|sta|wds> 
13
14
See also wlanconfig(8) for more detailed discussion.
15
16
Setup for bridged AP mode, ready for use with hostapd, follows:
17
18
** disallow autocreate link/ether (mandatory)
19
# grep ath_pci /etc/modprobe.d/options
20
options ath_pci autocreate=none
21
#
22
23
** link/ieee802.11 iface (optional)
24
# cat /etc/net/ifaces/wifi0/options
25
TYPE=eth
26
#
27
28
** link/ether (VAP) iface(s):
29
# cat /etc/net/ifaces/wlan/options
30
TYPE=wlan
31
HOST=wifi0
32
MODE=ap
33
#
34
35
** bridge iface, including wlan one:
36
# cat /etc/net/ifaces/br0/options 
37
TYPE=bri
38
HOST='wan lan wlan'
39
#
40
41
** sample hostapd configuration
42
# grep -v '^\(#\|ssid\|wpa_pass\|$\)' /etc/hostapd/hostapd.conf
43
interface=wlan
44
bridge=br0
45
driver=madwifi
46
logger_syslog=-1
47
logger_syslog_level=2
48
logger_stdout=-1
49
logger_stdout_level=2
50
debug=0
51
dump_file=/root/tmp/hostapd.dump
52
ctrl_interface=/var/run/hostapd
53
ctrl_interface_group=0
54
macaddr_acl=1
55
auth_algs=3
56
eapol_version=1
57
eapol_key_index_workaround=0
58
eap_server=0
59
wpa=3
60
wpa_key_mgmt=WPA-PSK
61
wpa_pairwise=TKIP CCMP
(-)a/etc/net/options.d/00-default (-1 / +1 lines)
Lines 67-72 AUTO_BROADCAST=off Link Here
67
67
68
IFGROUP[0]='lo dummy'
68
IFGROUP[0]='lo dummy'
69
IFGROUP[1]='eth plip usb dvb bnep tuntap'
69
IFGROUP[1]='eth plip usb dvb bnep tuntap'
70
IFGROUP[2]='vlan bond bri teql'
70
IFGROUP[2]='vlan bond bri teql wlan'
71
IFGROUP[3]='iptun ipsectun ovpn ossh'
71
IFGROUP[3]='iptun ipsectun ovpn ossh'
72
IFGROUP[4]='ppp'
72
IFGROUP[4]='ppp'
(-)a/etc/net/scripts/create-wlan (+13 lines)
Line 0 Link Here
1
#!/bin/bash
2
3
pickup_defaults
4
pickup_options
5
6
[ -x "${WLANCONFIG:=$DEFAULT_WLANCONFIG}" ] || {
7
	print_error "$WLANCONFIG does not exist or is not executable. Try installing madwifi-utils RPM."
8
	exit 1
9
}
10
11
: ${HOST:?HOST is missing for $NAME}
12
13
$WLANCONFIG $NAME create nounit wlandev "$HOST" wlanmode "${MODE:=sta}" > /dev/null
(-)a/etc/net/scripts/destroy-wlan (+11 lines)
Line 0 Link Here
1
#!/bin/bash
2
3
pickup_defaults
4
pickup_options
5
6
[ -x "${WLANCONFIG:=$DEFAULT_WLANCONFIG}" ] || {
7
	print_error "$WLANCONFIG does not exist or is not executable. Try installing madwifi-utils RPM."
8
	exit 1
9
}
10
11
$WLANCONFIG $NAME destroy
(-)a/etc/net/scripts/functions (-1 / +2 lines)
Lines 17-22 DEFAULT_IFPLUGSTATUS=/usr/sbin/ifplugstatus Link Here
17
DEFAULT_IFPLUGD=/usr/sbin/ifplugd
17
DEFAULT_IFPLUGD=/usr/sbin/ifplugd
18
DEFAULT_IWPRIV=/sbin/iwpriv
18
DEFAULT_IWPRIV=/sbin/iwpriv
19
DEFAULT_IWCONFIG=/sbin/iwconfig
19
DEFAULT_IWCONFIG=/sbin/iwconfig
20
DEFAULT_WLANCONFIG=/usr/sbin/wlanconfig
20
DEFAULT_WPA_SUPPLICANT=/usr/sbin/wpa_supplicant
21
DEFAULT_WPA_SUPPLICANT=/usr/sbin/wpa_supplicant
21
DEFAULT_WPA_CLI=/usr/sbin/wpa_cli
22
DEFAULT_WPA_CLI=/usr/sbin/wpa_cli
22
DEFAULT_PLIPCONFIG=/sbin/plipconfig
23
DEFAULT_PLIPCONFIG=/sbin/plipconfig
Lines 555-561 declare -frx stop_ipv4ll_client modprobe_with_rename modprobe_tuntap Link Here
555
declare -frx eval_string kill_by_pidfile
556
declare -frx eval_string kill_by_pidfile
556
declare -rx DENOISE DEFAULT_BONDMODE IFACEDIR LOCALSCRIPTDIR VARLIBDIR
557
declare -rx DENOISE DEFAULT_BONDMODE IFACEDIR LOCALSCRIPTDIR VARLIBDIR
557
declare -rx VLANTAB HOSTTAB IFTAB PROFILE_FILE PROC_CMDLINE DEFAULT_IFPLUGSTATUS
558
declare -rx VLANTAB HOSTTAB IFTAB PROFILE_FILE PROC_CMDLINE DEFAULT_IFPLUGSTATUS
558
declare -rx DEFAULT_IFPLUGD DEFAULT_IWCONFIG DEFAULT_WPA_SUPPLICANT DEFAULT_WPA_CLI DEFAULT_PLIPCONFIG
559
declare -rx DEFAULT_IFPLUGD DEFAULT_IWCONFIG DEFAULT_WLANCONFIG DEFAULT_WPA_SUPPLICANT DEFAULT_WPA_CLI DEFAULT_PLIPCONFIG
559
declare -rx DEFAULT_IWPRIV DEFAULT_VCONFIG DEFAULT_PENTANETT DEFAULT_PENTAVALT DEFAULT_PENTANET_CONF
560
declare -rx DEFAULT_IWPRIV DEFAULT_VCONFIG DEFAULT_PENTANETT DEFAULT_PENTAVALT DEFAULT_PENTANET_CONF
560
declare -rx DEFAULT_PENTAVAL_CONF DEFAULT_IPSECADM DEFAULT_IFENSLAVE DEFAULT_BRCTL
561
declare -rx DEFAULT_PENTAVAL_CONF DEFAULT_IPSECADM DEFAULT_IFENSLAVE DEFAULT_BRCTL
561
declare -rx DEFAULT_ETHTOOL DEFAULT_PPPD DEFAULT_CHAT DEFAULT_PPPOPTIONSFILE
562
declare -rx DEFAULT_ETHTOOL DEFAULT_PPPD DEFAULT_CHAT DEFAULT_PPPOPTIONSFILE

Return to bug 15588