OpenCloudOS-Kernel/drivers/net/ethernet/broadcom/genet
Florian Fainelli 386668a61f net: bcmgenet: properly disable password matching
bcmgenet_set_wol() correctly sets MPD_PW_EN when a password is specified
to match magic packets against, however, when we switch from a
password-matching to a matching without password we would leave this bit
turned on, and GENET would only match magic packets with passwords.

This can be reproduced using the following sequence:

ethtool -s eth0 wol g
ethtool -s eth0 wol s sopass 00:11:22:33:44:55
ethtool -s eth0 wol g

The simple fix is to clear the MPD_PWD_EN bit when WAKE_MAGICSECURE is
not set.

Fixes: c51de7f397 ("net: bcmgenet: add Wake-on-LAN support code")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-05 21:15:21 -05:00
..
Makefile net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00
bcmgenet.c net: bcmgenet: fix software maintained statistics 2015-03-01 14:02:11 -05:00
bcmgenet.h net: bcmgenet: fix throughtput regression 2015-02-28 23:58:33 -05:00
bcmgenet_wol.c net: bcmgenet: properly disable password matching 2015-03-05 21:15:21 -05:00
bcmmii.c net: bcmgenet: enable driver to work without a device tree 2014-12-08 20:26:59 -05:00