Re: Still unable to configure MadWifi as an AP

Aditya Bhave <[email protected]> Tue, 08 Jun 2010 18:55:53 -0400
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
As someone else suggested on this list, I disabled network manager and 
configured the interfaces as below. The ping now works properly between 
the AP and STA.
Is this a known problem?

--Aditya Bhave




On 06/02/2010 09:25 PM, Aditya Bhave wrote:
> If you see the lines next to ath0 in my output, it says mode: Master. Im
> using a Lenovo Thinkpad as an AP. It has an in-built Intel-based WiFi
> card which is showing up as wlan0 in the output of iwconfig. It doesnt
> show in the output of ifconfig since I disabled it using "ifconfig wlan0
> down."
> So I dont think theres a problem in my setting up the interface. Im
> reposting the output of ifconfig, iwconfig and route -n for STA and AP
> again below.
>
> Many thanks for your help
>
> /*****************************************************************/
>
> At the AP
>
> ayb@AdLenovoLinux:~$ ifconfig
> ath0      Link encap:Ethernet  HWaddr 06:0b:6b:20:72:f6
>              inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>              inet6 addr: fe80::40b:6bff:fe20:72f6/64 Scope:Link
>              UP BROADCAST MULTICAST  MTU:1500  Metric:1
>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:0
>              RX bytes:0 (0.0 B)  TX bytes:1721 (1.7 KB)
>
> eth0      Link encap:Ethernet  HWaddr 00:24:7e:11:b6:09
>              UP BROADCAST MULTICAST  MTU:1500  Metric:1
>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:1000
>              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>              Memory:fc000000-fc020000
>
> lo        Link encap:Local Loopback
>              inet addr:127.0.0.1  Mask:255.0.0.0
>              inet6 addr: ::1/128 Scope:Host
>              UP LOOPBACK RUNNING  MTU:16436  Metric:1
>              RX packets:74065 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:74065 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:0
>              RX bytes:3008539 (3.0 MB)  TX bytes:3008539 (3.0 MB)
>
> wifi0     Link encap:UNSPEC  HWaddr
> 00-0B-6B-20-72-F6-00-00-00-00-00-00-00-00-00-00
>              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>              RX packets:6270 errors:0 dropped:0 overruns:0 frame:57740
>              TX packets:2042 errors:342 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:199
>              RX bytes:897647 (897.6 KB)  TX bytes:181270 (181.2 KB)
>          Interrupt:16
>
> ayb@AdLenovoLinux:~$ iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wlan0     IEEE 802.11abgn
> ESSID:"f2\x0D\xB71X\xA3Z%]\x05\x17X\xE9^\xD4\xAB\xB2\xCD\xC6\x9B\xB4T\x11\x0E\x82tA!=\xDC\x87"
>
>              Mode:Managed  Frequency:2.427 GHz  Access Point: Not-Associated
>              Tx-Power=15 dBm
>              Retry  long limit:7   RTS thr:off   Fragment thr:off
>              Power Management:off
>
> pan0      no wireless extensions.
>
> wifi0     no wireless extensions.
>
> ath0      IEEE 802.11g  ESSID:"Aditya"
>              Mode:Master  Frequency:2.447 GHz  Access Point:
> 06:0B:6B:20:72:F6
>              Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1
>              Retry:off   RTS thr:off   Fragment thr:off
>              Power Management:off
>              Link Quality=0/70  Signal level=-95 dBm  Noise level=-95 dBm
>              Rx invalid nwid:902  Rx invalid crypt:0  Rx invalid frag:0
>              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> ayb@AdLenovoLinux:~$ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 ath0
>
> /****************************************************************************************************/
> On the STA
> ayb@ADSonyVAIO:~$ iwconfig
> lo        no wireless extensions.
>
> eth1      no wireless extensions.
>
> wlan0     IEEE 802.11abg  ESSID:off/any
>              Mode:Managed  Frequency:2.422 GHz  Access Point: Not-Associated
>              Tx-Power=15 dBm
>              Retry  long limit:7   RTS thr:off   Fragment thr:off
>              Power Management:off
>
> pan0      no wireless extensions.
>
> wifi0     no wireless extensions.
>
> ath2      IEEE 802.11g  ESSID:"Aditya"
>              Mode:Managed  Frequency:2.447 GHz  Access Point:
> 06:0B:6B:20:72:F6
>              Bit Rate:48 Mb/s   Tx-Power:16 dBm   Sensitivity=1/1
>              Retry:off   RTS thr:off   Fragment thr:off
>              Power Management:off
>              Link Quality=36/70  Signal level=-58 dBm  Noise level=-94 dBm
>              Rx invalid nwid:658  Rx invalid crypt:0  Rx invalid frag:0
>              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> ayb@ADSonyVAIO:~$ ifconfig
> ath2      Link encap:Ethernet  HWaddr 00:0b:6b:20:40:dd
>              inet addr:192.168.1.15  Bcast:192.168.1.255  Mask:255.255.255.0
>              inet6 addr: fe80::20b:6bff:fe20:40dd/64 Scope:Link
>              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:0
>              RX bytes:0 (0.0 B)  TX bytes:4966 (4.9 KB)
>
> eth1      Link encap:Ethernet  HWaddr 00:13:a9:48:e9:19
>              UP BROADCAST MULTICAST  MTU:1500  Metric:1
>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:1000
>              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> lo        Link encap:Local Loopback
>              inet addr:127.0.0.1  Mask:255.0.0.0
>              inet6 addr: ::1/128 Scope:Host
>              UP LOOPBACK RUNNING  MTU:16436  Metric:1
>              RX packets:377 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:377 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:0
>              RX bytes:34584 (34.5 KB)  TX bytes:34584 (34.5 KB)
>
> wifi0     Link encap:UNSPEC  HWaddr
> 00-0B-6B-20-40-DD-00-00-00-00-00-00-00-00-00-00
>              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>              RX packets:2392 errors:0 dropped:0 overruns:0 frame:147
>              TX packets:406 errors:8 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:199
>              RX bytes:362890 (362.8 KB)  TX bytes:24726 (24.7 KB)
>              Interrupt:16
>
> wlan0     Link encap:Ethernet  HWaddr 00:18:de:62:bd:c5
>              UP BROADCAST MULTICAST  MTU:1500  Metric:1
>              RX packets:15242 errors:0 dropped:0 overruns:0 frame:0
>              TX packets:12162 errors:0 dropped:0 overruns:0 carrier:0
>              collisions:0 txqueuelen:1000
>              RX bytes:2790387 (2.7 MB)  TX bytes:1296883 (1.2 MB)
>
> ayb@ADSonyVAIO:~$ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 ath2
> 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 ath2
> 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 ath2
>
>
>
>
>
>
> On 06/02/2010 05:53 PM, Pavel Roskin wrote:
>    
>> On Mon, 2010-05-31 at 19:07 -0400, Aditya Bhave wrote:
>>
>>
>>      
>>> Im still unable to configure MadWifi as an AP. As suggested. I have
>>> included the outputs of iwconfig.
>>>
>>>        
>> ...
>>
>>      
>>> At the AP
>>>
>>>        
>> ...
>>
>>      
>>> ayb@AdLenovoLinux:~$ iwconfig
>>> lo        no wireless extensions.
>>>
>>> eth0      no wireless extensions.
>>>
>>> wlan0     IEEE 802.11abgn
>>> ESSID:"f2\x0D\xB71X\xA3Z%]\x05\x17X\xE9^\xD4\xAB\xB2\xCD\xC6\x9B\xB4T\x11\x0E\x82tA!=\xDC\x87"
>>>
>>>              Mode:Managed  Frequency:2.427 GHz  Access Point: Not-Associated
>>>
>>>        
>> The only way to use master (AP) mode is to create an interface in master
>> mode.  This could be done with wlanconfig, but the easiest way would be
>> to use the autocreate parameter for the ath_pci module:
>>
>> rmmod ath_pci
>> modprobe ath_pci autocreate=master
>>
>> This is described in the README file in the MadWifi sources.
>>
>>
>>      
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Madwifi-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/madwifi-users
>
>    


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo