Skip to contentSkip to conversation

iw station del broken?

DISCUSSION Marco Porsch 2 participants 6 messages Mar 29, 2010

lore
Share & tools
lore
#0 lore raw

Hi list,

is it just me or is 'iw dev <devname> station del <MAC address>' broken?

I am using it in mesh mode to build generic topologies out of a fully meshed net. I am using it first since Javiers latest patch "[PATCH v2] mac80211: Handle mesh action frames in ieee80211_rx_h_action" which fixed mesh mode successfully.

I didn't try it in anything other than mesh. Running latest OpenWrt with compat-wireless-2010-03-24 and kernel 2.6.32.10 including Javiers patch. Maybe a fix for nl80211 is missing?

root@OpenWrt:/# iw dev imesh5g station get xx:xx:xx:xx:xx:xx
Station xx:xx:xx:xx:xx:xx (on imesh5g)
       inactive time:  410 ms
       rx bytes:       8569
       rx packets:     132
       tx bytes:       321
       tx packets:     5
       signal:         -19 dBm
       tx bitrate:     6.0 MBit/s
       mesh llid:      2784
       mesh plid:      64165
       mesh plink:     ESTAB
root@OpenWrt:/# iw dev imesh5g station del xx:xx:xx:xx:xx:xx
command failed: Invalid argument (-22)
#1 lore raw
Quoted 3 lines · Marco Porsch

Hi list,

is it just me or is 'iw dev <devname> station del <MAC address>' broken?

No ... we decided a while ago that station manipulation in mesh was too hard to support and removed it.

What's the use case anyway?

johannes

#2 lore raw
Quoted 7 lines · Johannes Berg
Quoted 4 lines · Marco Porsch

Hi list,

is it just me or is 'iw dev <devname> station del <MAC address>' broken?

Quoted 7 lines

No ... we decided a while ago that station manipulation in mesh was too hard to support and removed it.

What's the use case anyway?

johannes

The use case is that, if I have some mesh points in a single room or one a small floor, I can simply give them a topology by removing the links between the STA, I do not wish to be directly connected. Removing the links means 'iw dev <devname> set mesh_param mesh_auto_open_plinks 0', which blocks building up new peering links, and then removing some links with 'station del'.

Hmpf.. I used this feature quiet often...

Regards,
Marco

#3 lore raw
Quoted 13 lines · Marco Porsch
Quoted 12 lines · Johannes Berg
Quoted 4 lines · Marco Porsch

Hi list,

is it just me or is 'iw dev <devname> station del <MAC address>' broken?

No ... we decided a while ago that station manipulation in mesh was too hard to support and removed it.

What's the use case anyway?

Quoted 8 lines
Quoted 2 lines

johannes

The use case is that, if I have some mesh points in a single room or one a small floor, I can simply give them a topology by removing the links between the STA, I do not wish to be directly connected. Removing the links means 'iw dev <devname> set mesh_param mesh_auto_open_plinks 0', which blocks building up new peering links, and then removing some links with 'station del'.

Can't you just do that before it gets discovered?

I'm not really happy with the mesh API anyway ...

johannes

#4 lore raw
Quoted 24 lines · Johannes Berg
Quoted 13 lines · Marco Porsch
Quoted 11 lines · Johannes Berg
Quoted 5 lines · Marco Porsch

Hi list,

is it just me or is 'iw dev <devname> station del <MAC address>' broken?

No ... we decided a while ago that station manipulation in mesh was too hard to support and removed it.

Quoted 8 lines
Quoted 5 lines

What's the use case anyway?

johannes

The use case is that, if I have some mesh points in a single room or one a small floor, I can simply give them a topology by removing the links between the STA, I do not wish to be directly connected. Removing the links means 'iw dev <devname> set mesh_param mesh_auto_open_plinks 0', which blocks building up new peering links, and then removing some links with 'station del'.

Quoted 7 lines

Can't you just do that before it gets discovered?

I'm not really happy with the mesh API anyway ...

johannes

That makes any scripting impossible, because it would mean a fine timing between the ifup on the stations. Also I think you can't build complex topologies this way.
The alternative iw dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address> is not useful (if it is still included though ^^) because it sets paths hard. Means that these paths are not changed, even if they are broken.

Well, you're the maintainer. Your choice.

By the way: which was the last version with 'station del' in mesh intact? Which codeparts would have to be exchanged if i'd like to use this further? Only iw and nl80211?

#5 lore raw
Quoted 3 lines · Marco Porsch

That makes any scripting impossible, because it would mean a fine timing between the ifup on the stations. Also I think you can't build complex topologies this way.

Hmm, you're probably right.

Quoted 10 lines

The alternative iw dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address> is not useful (if it is still included though ^^) because it sets paths hard. Means that these paths are not changed, even if they are broken.

Well, you're the maintainer. Your choice.

By the way: which was the last version with 'station del' in mesh intact? Which codeparts would have to be exchanged if i'd like to use this further? Only iw and nl80211?

Actually I think you only need to change a line in nl80211.c allowing deleting; in fact deleting is OK (and thus I think we can put a patch in adding it back) -- adding was the problem.

johannes