Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b281c57 authored by Loic Poulain's avatar Loic Poulain Committed by Yong Yao
Browse files

Bluedroid: Avoid multicast address for tun-tap interface



Linux Kernel disallows to set an ethernet multicast
address as ethernet device address.

The IEEE has specified that the most significant bit
of the most significant byte of a mac address is used
for multicast. If its a 1, that means multicast, 0
means unicast.

Bluedroid uses the BD address to set the tun-tap intf
mac address. This BD address can be randomly auto
generated, possibly with the multicast bit.

To avoid any address issue, this patch masks this bit
before setting the ethernet mac address.

Change-Id: Ifff4ec7237ae6cbef3b8d4c23096c5df65e1431c
Signed-off-by: default avatarLoic Poulain <loic.poulain@intel.com>
Reviewed-on: https://android.intel.com/184768


Reviewed-by: default avatarZhang, Jianxun <jianxun.zhang@intel.com>
Tested-by: default avatarZhang, Jianxun <jianxun.zhang@intel.com>
parent 50964e39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment