]> 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)
commit7ef91bf5eefb18eb6174a449222f64c510d9b8d4
tree625039e5515d0a18e7f837c998af47e4aeb089de
parent42a0efbd90ca514ae316c547596dc4d99de99263
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