rpcd: iwinfo plugin fixes
[openwrt.git] / target / linux / ramips / patches-4.4 / 0601-net-mediatke-add-phy_ethtool_ioctl-support.patch
1 From 3c550ae0359be5bc4d5daa86a62f711a91ac8dde Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sun, 13 Dec 2015 17:46:09 +0100
4 Subject: [PATCH 2/2] net:mediatke: add phy_ethtool_ioctl() support
5
6 Signed-off-by: John Crispin <blogic@openwrt.org>
7 ---
8  drivers/net/ethernet/mediatek/mtk_eth_soc.c |    3 +++
9  1 file changed, 3 insertions(+)
10
11 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
12 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
13 @@ -1344,6 +1344,9 @@ static int fe_do_ioctl(struct net_device
14                 return -ENODEV;
15  
16         switch (cmd) {
17 +       case SIOCETHTOOL:
18 +               return phy_ethtool_ioctl(priv->phy_dev,
19 +                               (void *) ifr->ifr_data);
20         case SIOCGMIIPHY:
21         case SIOCGMIIREG:
22         case SIOCSMIIREG: