aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-05 14:51:20 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-05 15:53:04 -0500
commit7c118c1a866454cf2091fd84404d0915a27b0eef (patch)
tree1fb04fdec86c490a8f7a30e07440c1cbc16c902f /drivers/net/ieee802154
parente4962a14435e15c0c070e8aa1b010454c9292c02 (diff)
mac802154: add ieee802154_vif struct
This patch adds an ieee802154_vif similar like the ieee80211_vif which holds the interface type and maybe further more attributes like the ieee80211_vif structure. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Cc: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/at86rf230.c1
-rw-r--r--drivers/net/ieee802154/cc2520.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index f68ebba91b10..bf477851415b 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1533,6 +1533,7 @@ static int at86rf230_probe(struct spi_device *spi)
1533 lp->hw = hw; 1533 lp->hw = hw;
1534 lp->spi = spi; 1534 lp->spi = spi;
1535 hw->parent = &spi->dev; 1535 hw->parent = &spi->dev;
1536 hw->vif_data_size = sizeof(*lp);
1536 1537
1537 lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config); 1538 lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config);
1538 if (IS_ERR(lp->regmap)) { 1539 if (IS_ERR(lp->regmap)) {
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 340671b747b1..ccbb082f3391 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -651,6 +651,7 @@ static int cc2520_register(struct cc2520_private *priv)
651 priv->hw->priv = priv; 651 priv->hw->priv = priv;
652 priv->hw->parent = &priv->spi->dev; 652 priv->hw->parent = &priv->spi->dev;
653 priv->hw->extra_tx_headroom = 0; 653 priv->hw->extra_tx_headroom = 0;
654 priv->hw->vif_data_size = sizeof(*priv);
654 655
655 /* We do support only 2.4 Ghz */ 656 /* We do support only 2.4 Ghz */
656 priv->hw->phy->channels_supported[0] = 0x7FFF800; 657 priv->hw->phy->channels_supported[0] = 0x7FFF800;