Versione 4 del 2008-07-18 00:39:39

Nascondi questo messaggio
Italiano English
Modifica History Actions

ath5k

Ath5k

Ath5k e il nuovo driver per le schede wireless con chipset atheros. A differenza di madwifi, ath5k e *completamente* open source.
Per maggiori informazioni, andate a vedervi il sito del progetto: http://wireless.kernel.org/

Istruzioni per lo sblocco dei canali

!!! Invadere le frequenze non libere è PARTICOLARMENTE illegale !!!

1) Installare un kernel che supporti ath5k. Noi abbiamo fatto le prove con il 2.6.26 ma dato che il progetto e in corso d'opera, non sono escluse modifiche sostanziali nelle prossime release. Dovete compilare il kernel con queste opzioni abilitate:

Networking  --->
  Wireless  ---> 
    <M> Improved wireless configuration API 
    <M> Generic IEEE 802.11 Networking Stack (mac80211)

Device Drivers  --->
  [*] Network device support  --->
        Wireless LAN  --->
          <M>   Atheros 5xxx wireless cards support

Se puo' esservi utile ecco un .config base: .config

2) cambiate il file: drivers/net/wireless/ath5k/ath5k.h alla linea 26 da

#define CHAN_DEBUG      0

a

#define CHAN_DEBUG      1

modificate inoltre il file net/wireless/reg.c dalla linea 58 alla 71 sostituando a:

static const struct ieee80211_channel_range ieee80211_US_channels[] = {
/* IEEE 802.11b/g, channels 1..11 */
RANGE_PWR(2412, 2462, 27, 6, 0),
/* IEEE 802.11a, channel 36*/
RANGE_PWR(5180, 5180, 23, 6, 0),
/* IEEE 802.11a, channel 40*/
RANGE_PWR(5200, 5200, 23, 6, 0),
/* IEEE 802.11a, channel 44*/
RANGE_PWR(5220, 5220, 23, 6, 0),
/* IEEE 802.11a, channels 48..64 */
RANGE_PWR(5240, 5320, 23, 6, 0),
/* IEEE 802.11a, channels 149..165, outdoor */
RANGE_PWR(5745, 5825, 30, 6, 0),
};

queste nuove righe:

static const struct ieee80211_channel_range ieee80211_US_channels[] = {
/* IEEE 802.11b/g, hacked :-) ninux.org  */
RANGE_PWR(2412, 2732, 27, 6, 0),
/* IEEE 802.11a,hacked :-) ninux.org */
RANGE_PWR(5135, 6100, 30, 6, 0),
};

copilate il kernel e riavviate. Poi caricate il modulo ath5k con il comando:

modprobe ath5k

3) installate il tool iw che potete scaricare da questa pagina: http://wireless.kernel.org/en/users/Documentation/iw

per eseguire iw vi servirà anche la nuova libreria condivisa per la comunicazione user-kernel space: http://people.suug.ch/~tgr/libnl/

4) create una nuova interfaccia con il comando:

iw dev wmaster0 interface add pippo type station

e settatela sui 6.100 Ghz con il comando

iwconfig pippo channel 220 

:-) Enjoy the 6 Ghz experience!

5) per abilitare i canali a 2 Ghz, occorre qualche manovra in piu': serve modificare il file /net/wireless/util.c e modificare a mano le funzioni ieee80211_channel_to_frequency e ieee80211_frequency_to_channel per aggiungere i canali che vogliamo (ad esempio per creare il canale 15 e settarlo a 2732 Mhz).

Note: abbiamo fatto una patch ( sblocca.patch ) ma è ancora da migliorare. Cerchiamo quanto prima di pubblicare la patch da mettere in openwrt.