[Olsr-users] DLEP Radio test: Can mac80211_hwsim help?

Vigneswaran R (spam-protected)
Tue Dec 16 06:27:28 CET 2014


On 12/15/2014 05:09 PM, Henning Rogge wrote:
> Hi,
>
> you could just compile a OON executable and use the nl80211-listener
> and the layer2-viewer to see what information you get from the
> interface.

I could get some information using layer2info as shown below.

# echo "/layer2info interface"|nc 127.0.0.1 2009
wlan1    74    02:00:00:00:01:00                    2.412 GHz    0 Hz    
20 MHz    0  Hz

I used the following configuration entries.

dlep_radio.conf
===============
[global]
         plugin          dlep_radio
         plugin          layer2info
         plugin          nl80211_listener

[dlep_radio=tap0]
         source          wlan1

[nl80211_listener]
         if              wlan1
         interval        1.0

[layer2_viewer]

I am not sure whether layer2_viewer is in effect or not. Because, when I 
tried "olsrd2_static --set global.plugin=layer2_viewer 
--schema=layer2_viewer" to know the plugin options, I got the following 
message,

WARN(plugins) src-api/core/oonf_subsystem.c 544: Loading of plugin 
layer2_viewer failed.
Unknown section type 'layer2_viewer'


Regards,
Vignesh

>
> Looks like it would work together with DLEP.
>
> Henning
>
> On Mon, Dec 15, 2014 at 12:36 PM, Vigneswaran R <(spam-protected)> wrote:
>> On 12/15/2014 02:24 PM, Henning Rogge wrote:
>>> Which means you get a wifi, but it delivers no metadata you could get into
>>> DLEP.
>>>
>>> So someone would need to extend 80211 hwsim to allow setting nl80211
>>> metadata parameters that can be queried through the normal interfaces
>>> later.
>>
>> Ok. Now, I am getting the following information (after running hostapd on
>> one interface and wpa_supplicant on another interface).
>>
>> $ iw wlan0 station dump
>> Station 02:00:00:00:01:00 (on wlan0)
>>      inactive time:    68 ms
>>      rx bytes:    962
>>      rx packets:    10
>>      tx bytes:    528
>>      tx packets:    4
>>      tx retries:    0
>>      tx failed:    0
>>      signal:      -30 dBm
>>      signal avg:    -30 dBm
>>      tx bitrate:    1.0 MBit/s
>>      rx bitrate:    9.0 MBit/s
>>      authorized:    yes
>>      authenticated:    yes
>>      preamble:    short
>>      WMM/WME:    no
>>      MFP:        no
>>      TDLS peer:    no
>>
>> $ iw wlan1 station dump
>> Station 02:00:00:00:00:00 (on wlan1)
>>      inactive time:    7108 ms
>>      rx bytes:    75246
>>      rx packets:    1350
>>      tx bytes:    1009
>>      tx packets:    10
>>      tx retries:    0
>>      tx failed:    0
>>      signal:      -30 dBm
>>      signal avg:    -30 dBm
>>      tx bitrate:    9.0 MBit/s
>>      rx bitrate:    1.0 MBit/s
>>      authorized:    yes
>>      authenticated:    yes
>>      preamble:    long
>>      WMM/WME:    no
>>      MFP:        no
>>      TDLS peer:    no
>>
>> ref:
>> <http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=tree;f=mac80211_hwsim/tests/0001-wpa2-psk;h=2881fa22390d3c7bd7b0045cfd2360cd8b638826;hb=HEAD>
>>
>>
>> Vignesh
>>
>>> Henning
>>>
>>> On Mon, Dec 15, 2014 at 9:52 AM, Vigneswaran R <(spam-protected)>
>>> wrote:
>>>> On 12/15/2014 01:21 PM, Henning Rogge wrote:
>>>>> Hi,
>>>>>
>>>>> what do you get as output with "iw <hwsim-wlan> station dump" for a
>>>>> simulated interface?
>>>>
>>>> Not getting any output for the above command.
>>>>
>>>> However, 'iw wlan1 info' gives the following output.
>>>>
>>>> Interface wlan1
>>>>       ifindex 74
>>>>       wdev 0x100000001
>>>>       addr 02:00:00:00:01:00
>>>>       type managed
>>>>       wiphy 1
>>>>
>>>> Vignesh
>>>>
>>>>
>>>>> Henning
>>>>>
>>>>> On Mon, Dec 15, 2014 at 6:29 AM, Vigneswaran R <(spam-protected)>
>>>>> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Can mac80211_hwsim module be used for simulating Radio device for DLEP
>>>>>> test?
>>>>>>
>>>>>> Just modprobe'ing the module created/simulated two wireless interfaces.
>>>>>> I
>>>>>> am
>>>>>> exploring this further.
>>>>>>
>>>>>> ref: http://wireless.kernel.org/en/users/Drivers/mac80211_hwsim
>>>>>>
>>>>>> Vignesh
>>>>>>
>>>>>> --
>>>>>> Olsr-users mailing list
>>>>>> (spam-protected)
>>>>>> https://lists.olsr.org/mailman/listinfo/olsr-users
>>>>





More information about the Olsr-users mailing list