Author: simon Date: 2010-06-05 19:57:18 +0200 (Sat, 05 Jun 2010) New Revision: 1690
Modified: trunk/batman-adv-kernelland/gateway_common.c Log: batman-adv: Correct gw_speed down bit mask
We want to get bits .OOOO... and not as the mask would suggest .OOOOO.. when we decode the encoded bits for the download part of the gateway speed.
Reported-By: Bill Meier wmeier@newsguy.com Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
Modified: trunk/batman-adv-kernelland/gateway_common.c =================================================================== --- trunk/batman-adv-kernelland/gateway_common.c 2010-06-05 17:47:28 UTC (rev 1689) +++ trunk/batman-adv-kernelland/gateway_common.c 2010-06-05 17:57:18 UTC (rev 1690) @@ -63,7 +63,7 @@ void gw_srv_class_to_kbit(uint8_t gw_srv_class, int *down, int *up) { char sbit = (gw_srv_class & 0x80) >> 7; - char dpart = (gw_srv_class & 0x7C) >> 3; + char dpart = (gw_srv_class & 0x78) >> 3; char upart = (gw_srv_class & 0x07);
if (!gw_srv_class) {