Search Linux Wireless

Re: [PATCH] cfg80211: allow adding/deleting stations on mesh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 16, 2009 at 11:35 AM, Johannes
Berg<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Tue, 2009-06-16 at 11:31 -0700, Andrey Yurovsky wrote:
>> Commit b2a151a288 added a check that prevents adding or deleting
>> stations on non-AP interfaces.  Adding and deleting stations is
>> supported for Mesh Point interfaces, so add Mesh Point to that check as
>> well.
>
> Why? Aren't those automatically discovered like IBSS peers?

Yes, they normally are, however it's possible to turn that off from
user space (via iw).

The reason for this is that it's useful to manually create mesh
topologies.  This is mostly for testing, verification, and
experimentation.  For example, you can manually create a topology
where you have two paths and you know one path is better than another
and then run a test script that verifies that the right path was
taken.  It could presumably also be used by some user-space "mesh
manager" similar to hostapd for APs.

  -Andrey

>> Signed-off-by: Andrey Yurovsky <andrey@xxxxxxxxxxx>
>> ---
>>  net/wireless/nl80211.c |    6 ++++--
>>  1 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
>> index e18856c..b28c641 100644
>> --- a/net/wireless/nl80211.c
>> +++ b/net/wireless/nl80211.c
>> @@ -1763,7 +1763,8 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info)
>>               goto out_rtnl;
>>
>>       if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
>> -         dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) {
>> +         dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
>> +         dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
>>               err = -EINVAL;
>>               goto out;
>>       }
>> @@ -1812,7 +1813,8 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info)
>>               goto out_rtnl;
>>
>>       if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
>> -         dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) {
>> +         dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
>> +         dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
>>               err = -EINVAL;
>>               goto out;
>>       }
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux