]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add WiFi penalty
authorSimon Wunderlich <simon@open-mesh.com>
Wed, 13 Nov 2013 18:14:48 +0000 (19:14 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sun, 12 Jan 2014 13:41:13 +0000 (14:41 +0100)
commitff566f80a6e70f3cd42cbe769955c1e0dec10e05
tree625039e5515d0a18e7f837c998af47e4aeb089de
parentb650eeb94253ca8d7f123b613ebcd5b29de32a6a
batman-adv: add WiFi penalty

If the same interface is used for sending and receiving, there might be
throughput degradation on half-duplex interfaces such as WiFi. Add a
penalty if the same interface is used to reflect this problem in the
metric. At the same time, change the hop penalty from 30 to 15 so there
will be no change for single wifi mesh network. the effective hop
penalty will stay at 30 due to the new wifi penalty for these networks.

Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/hard-interface.h
net/batman-adv/soft-interface.c