ho un bel serverino casalingo ma ogni tanto mi rimbecillisco e decido di aggiungere qualcosa, anche se non ne ho bisogno, e mi creo un sacco di paranoie per nulla!
Dunque per prima cosa sono abbastanza nubbo di gentoo, cerco ogni volta di arrangiarmi senza chiedere aiuto, ma sto letteralmete diventando pazzo!
Andiamo per ordine:
Il mio problema iniziale era aggiungere al muletto una bella scheda wifi per farlo diventare un ap!
Quindi prendo un bella scheda minipci atheros di un mio vecchio portatile e la provo (usando un adattatore mini-pci).... niente: la sola modalità in cui funzionava era la managed (neanche la ad-hoc andava...)
Non mi scoraggio, provo una Broadcom BCM4318.... stessa roba
Faccio lo stesso con un po' di schede wireless (uso i moduli, li compilo nel kernel, scarico patch, seguo una marea di guide, ma niente)
Arrivo a provare una scheda di un mio amico (Belkin f5d-7000 dotata di un chip broadcom bcm4306) e stranamente entra in modalità ad-hoc (alla master ci ho rinunciato...)
Quindi dico: ma esiste in questo universo una scheda wireless che inserisco nello slot pci, carico/compilo il modulo corrispondente, gli do un bel iwconfig wlanX mode master && ifconfig wlanX up e funziona senza far casino????????
Ed arriviamo al problema serio: non risco a connettere niente in configurazione ad-hoc.....
La scheda sembra partire quando gli do un ifconfig wlan0 up infatti dmesg | grep b43 dice (premetto che ho spento e acceso la scheda un po' di volte):
Code: Select all
b43-phy0: Broadcom 4306 WLAN found
b43-phy0 debug: Found PHY: Analog 2, Type 2, Revision 2
b43-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2050, Revision 2
input: b43-phy0 as /class/input/input2
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 30-bit DMA initialized
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 2
b43-phy0 debug: Removing Interface type 2
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-30 0x0200 (RX) max used slots: 0/64
b43-phy0 debug: DMA-30 0x02A0 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0280 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0260 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0240 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0220 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0200 (TX) max used slots: 0/128
input: b43-phy0 as /class/input/input3
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 30-bit DMA initialized
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 3
b43-phy0 debug: Removing Interface type 3
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-30 0x0200 (RX) max used slots: 2/64
b43-phy0 debug: DMA-30 0x02A0 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0280 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0260 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0240 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0220 (TX) max used slots: 20/128
b43-phy0 debug: DMA-30 0x0200 (TX) max used slots: 0/128
input: b43-phy0 as /class/input/input4
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 30-bit DMA initialized
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 3
b43-phy0: Radio turned off by software
b43-phy0: Radio turned on by software
b43-phy0 debug: Removing Interface type 3
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-30 0x0200 (RX) max used slots: 1/64
b43-phy0 debug: DMA-30 0x02A0 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0280 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0260 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0240 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0220 (TX) max used slots: 20/128
b43-phy0 debug: DMA-30 0x0200 (TX) max used slots: 0/128
input: b43-phy0 as /class/input/input5
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 30-bit DMA initialized
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 3
b43-phy0: Radio turned off by software
b43-phy0: Radio turned on by software
b43-phy0 debug: Removing Interface type 3
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-30 0x0200 (RX) max used slots: 2/64
b43-phy0 debug: DMA-30 0x02A0 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0280 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0260 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0240 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0220 (TX) max used slots: 8/128
b43-phy0 debug: DMA-30 0x0200 (TX) max used slots: 0/128
input: b43-phy0 as /class/input/input6
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 30-bit DMA initialized
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 3
b43-phy0: Radio turned off by software
b43-phy0: Radio turned on by software
b43-phy0: Radio turned off by software
b43-phy0 debug: Removing Interface type 3
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-30 0x0200 (RX) max used slots: 0/64
b43-phy0 debug: DMA-30 0x02A0 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0280 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0260 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0240 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0220 (TX) max used slots: 0/128
b43-phy0 debug: DMA-30 0x0200 (TX) max used slots: 0/128
input: b43-phy0 as /class/input/input7
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 30-bit DMA initialized
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 3
b43-phy0: Radio turned off by software
b43-phy0: Radio turned on by software
Code: Select all
wlan0 IEEE 802.11g ESSID:"server"
Mode:Ad-Hoc Frequency:2.427 GHz Cell: 2A:96:B3:0B:7A:F3
Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Code: Select all
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Trigger new scan to find an IBSS to join
wlan0: Creating new IBSS network, BSSID 2a:96:b3:0b:7a:f3
wlan0: Configured IBSS beacon template based on scan results
Dmesg riporta che si è connesso l'altro computer, ma poi si sconnette subito:
Code: Select all
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
phy0: Adding new IBSS station 00:1d:92:c4:15:c1 (dev=wlan0)
wlan0: expiring inactive STA 00:1d:92:c4:15:c1
Code: Select all
modules_wlan0=("iwconfig")
config_eth0=("dhcp")
config_eth1=("192.168.0.1 netmask 255.255.255.0")
routes_eth1=("default via 192.168.0.1")
config_wlan0=("192.168.1.1 netmask 255.255.255.0")
routes_wlan0=("default via 192.168.1.1")
mode_wlan0="ad-hoc"
essid_wlan0="server"
channel_wlan0="4"
postup () {
if [[ ${IFACE} == "wlan0" ]]; then
iwconfig wlan0 txpower on
fi
}
Grazie in anticipo
PS: sono sul 2.6.25-hardened-r8




