mac_cmd.c (036562f9c4d942f2fbc77ae3215309bde340546f) | mac_cmd.c (04e850fe06312a9f570fcc7dbd0f141c012df404) |
---|---|
1/* 2 * MAC commands interface 3 * 4 * Copyright 2007-2012 Siemens AG 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 8 * as published by the Free Software Foundation. --- 65 unchanged lines hidden (view full) --- 74} 75 76static struct wpan_phy *mac802154_get_phy(const struct net_device *dev) 77{ 78 struct ieee802154_sub_if_data *sdata = netdev_priv(dev); 79 80 BUG_ON(dev->type != ARPHRD_IEEE802154); 81 | 1/* 2 * MAC commands interface 3 * 4 * Copyright 2007-2012 Siemens AG 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 8 * as published by the Free Software Foundation. --- 65 unchanged lines hidden (view full) --- 74} 75 76static struct wpan_phy *mac802154_get_phy(const struct net_device *dev) 77{ 78 struct ieee802154_sub_if_data *sdata = netdev_priv(dev); 79 80 BUG_ON(dev->type != ARPHRD_IEEE802154); 81 |
82 return to_phy(get_device(&sdata->hw->phy->dev)); | 82 return to_phy(get_device(&sdata->local->phy->dev)); |
83} 84 85static struct ieee802154_llsec_ops mac802154_llsec_ops = { 86 .get_params = mac802154_get_params, 87 .set_params = mac802154_set_params, 88 .add_key = mac802154_add_key, 89 .del_key = mac802154_del_key, 90 .add_dev = mac802154_add_dev, --- 26 unchanged lines hidden --- | 83} 84 85static struct ieee802154_llsec_ops mac802154_llsec_ops = { 86 .get_params = mac802154_get_params, 87 .set_params = mac802154_set_params, 88 .add_key = mac802154_add_key, 89 .del_key = mac802154_del_key, 90 .add_dev = mac802154_add_dev, --- 26 unchanged lines hidden --- |