]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: generate fake source MAC address with random_ether_addr()
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Wed, 22 Apr 2009 23:53:08 +0000 (16:53 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Fri, 29 May 2009 01:01:24 +0000 (18:01 -0700)
commit406b43af9569940f3abbb259c6840c340efc2abe
treebd65e359b36f02c92819dc488eae0c981c09bc5f
parent49e34e32266954494dfd3a4f81f34b858de6b84e
wimax/i2400m: generate fake source MAC address with random_ether_addr()

The WiMAX i2400m driver needs to generate a fake source MAC address to
fake an ethernet header (for destination, the card's MAC is
used). This is the source of the packet, which is the basestation it
came from. The basestation's mac address is not usable for this, as it
uses its own namespace and it is not always available.

Currently the fake source MAC address was being set to all zeros,
which was causing trouble with bridging.

Use random_ether_addr() to generate a proper one that creates no
trouble.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/driver.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wimax/i2400m/netdev.c