]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: drop new node with weak power
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 16 Mar 2017 01:57:18 +0000 (10:57 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 Mar 2017 08:29:09 +0000 (10:29 +0200)
commit78cca30d48b3a8b1d04c9f1a9146ebeb759a6c0b
treeb9ba9224d9086166571b8a68bc4fe11609e85b6e
parent7bdd3e8136bca2e90e8d9888c685b59251038cca
mac80211: mesh: drop new node with weak power

On some practical cases, it is useful to drop new node in the distance.
Because mesh metric is calculated with hop count and without RSSI
information, a node far from local peer and near to destination node
could be used as best path.

For example, the nodes are located in linear. Distance of 0 - 1 and
1 - 2 and 2 - 3 is 20meters. 0 to 3 signal is very weak.

    0 --- 1 --- 2 --- 3

Though most robust path from 0 to 3 is 0 -> 1 -> 2 -> 3,
unfortunately, node 0 could recognize node 3 as neighbor. Then node 3
could be next of node 0. This patch aims to avoid such a case.

[Johannes:]
Dropping the node entirely isn't ideal, but at least with encryption
there will be a limit on # of keys the hardware can deal with, and
there might also be a limit on the number of stations it supports.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c