diff options
author | Sven Eckelmann <sven@narfation.org> | 2017-03-04 15:48:50 +0100 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-03-04 17:32:06 +0100 |
commit | 1a9070ec91b37234fe915849b767c61584c64a44 (patch) | |
tree | 49d04bcbc3089b8f3f89bc4ddbdf2f279e58c4ce /net/phonet | |
parent | 1c2bcc766be44467809f1798cd4ceacafe20a852 (diff) | |
download | op-kernel-dev-1a9070ec91b37234fe915849b767c61584c64a44.zip op-kernel-dev-1a9070ec91b37234fe915849b767c61584c64a44.tar.gz |
batman-adv: Initialize gw sel_class via batadv_algo
The gateway selection class variable is shared between different algorithm
versions. But the interpretation of the content is algorithm specific. The
initialization is therefore also algorithm specific.
But this was implemented incorrectly and the initialization for BATMAN_V
always overwrote the value previously written for BATMAN_IV. This could
only be avoided when BATMAN_V was disabled during compile time.
Using a special batadv_algo hook for this initialization avoids this
problem.
Fixes: 50164d8f500f ("batman-adv: B.A.T.M.A.N. V - implement GW selection logic")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/phonet')
0 files changed, 0 insertions, 0 deletions