diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-27 14:38:18 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-27 14:39:06 +0400 |
commit | 54a98415803448cad25dcac16785680d269857b5 (patch) | |
tree | 7cc9c7fd27dad4bbdef9e85f7b3c2b3789ce04ee | |
parent | 66109dd10b4bdfeb6683ac8b88da910a5ec711c9 (diff) |
allow mac address changes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rwxr-xr-x | os/linux/rt_linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/linux/rt_linux.c b/os/linux/rt_linux.c index e39df7a..ee541e7 100755 --- a/os/linux/rt_linux.c +++ b/os/linux/rt_linux.c @@ -1665,6 +1665,7 @@ int RtmpOSNetDevAttach( /* If we need hook some callback function to the net device structrue, now do it. */ if (pDevOpHook) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) + pNetDevOps->ndo_set_mac_address = eth_mac_addr; pNetDevOps->ndo_open = pDevOpHook->open; pNetDevOps->ndo_stop = pDevOpHook->stop; pNetDevOps->ndo_start_xmit = |