Przyklad prostego skryptu ustawiajacego karte na atherosie ze starymi sterownikami madwifi w tryb ap z szyfrowaniem.
ifconfig ath0 down
ifconfig ath0 hw ether 00:10:20:30:40:50
ifconfig ath0 up
ifconfig ath0 192.168.1.1 netmask 255.255.255.0
iwconfig ath0 mode master
iwconfig ath0 essid test
iwconfig ath0 rate 54M
iwconfig ath0 channel 100
athctrl -i ath0 -d 3000
iwconfig ath0 key s:93hs6RdWS78aa
Wynik:
# iwconfig ath0
ath0 IEEE 802.11a ESSID:"test" Nickname:"nazwahosta"
Mode:Master Frequency:5.5 GHz Access Point: 00:10:20:30:40:50
Bit Rate=54 Mb/s Tx-Power:18 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:3933-6873-3652-6457-5337-3861-61 Security mode:restricted
Power Management:off
Link Quality=26/94 Signal level=-69 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:181 Invalid misc:181 Missed beacon:0
# iwlist ath0 enc
ath0 3 key sizes : 40, 104, 128bits
4 keys available :
[1]: 3933-6873-3652-6457-5337-3861-61 (104 bits)
[2]: off
[3]: off
[4]: off
Current Transmit Key: [1]
Security mode:restricted
_________________
FAQ dla NND:
http://nnd-linux.pl/faq.php
Doswiadczenie, to cos, co zdobywasz tuz po chwili w ktorej go potrzebowales.