|
@@ -661,7 +661,7 @@ static int bcm_sf2_sw_resume(struct dsa_switch *ds)
|
|
|
static void bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port,
|
|
|
struct ethtool_wolinfo *wol)
|
|
|
{
|
|
|
- struct net_device *p = ds->dst->cpu_dp->netdev;
|
|
|
+ struct net_device *p = ds->ports[port].cpu_dp->netdev;
|
|
|
struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
|
|
|
struct ethtool_wolinfo pwol;
|
|
|
|
|
@@ -684,9 +684,9 @@ static void bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port,
|
|
|
static int bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port,
|
|
|
struct ethtool_wolinfo *wol)
|
|
|
{
|
|
|
- struct net_device *p = ds->dst->cpu_dp->netdev;
|
|
|
+ struct net_device *p = ds->ports[port].cpu_dp->netdev;
|
|
|
struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
|
|
|
- s8 cpu_port = ds->dst->cpu_dp->index;
|
|
|
+ s8 cpu_port = ds->ports[port].cpu_dp->index;
|
|
|
struct ethtool_wolinfo pwol;
|
|
|
|
|
|
p->ethtool_ops->get_wol(p, &pwol);
|