mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ieee802154: add iftypes capability
This patch adds capability flags for supported interface types. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
edea8f7c75
commit
65318680c9
3 changed files with 9 additions and 2 deletions
|
|
@ -116,6 +116,9 @@ ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops)
|
|||
phy->supported.max_csma_backoffs = 5;
|
||||
phy->supported.lbt = NL802154_SUPPORTED_BOOL_FALSE;
|
||||
|
||||
/* always supported */
|
||||
phy->supported.iftypes = BIT(NL802154_IFTYPE_NODE);
|
||||
|
||||
return &local->hw;
|
||||
}
|
||||
EXPORT_SYMBOL(ieee802154_alloc_hw);
|
||||
|
|
@ -181,6 +184,9 @@ int ieee802154_register_hw(struct ieee802154_hw *hw)
|
|||
local->phy->supported.max_frame_retries = -1;
|
||||
}
|
||||
|
||||
if (hw->flags & IEEE802154_HW_PROMISCUOUS)
|
||||
local->phy->supported.iftypes |= BIT(NL802154_IFTYPE_MONITOR);
|
||||
|
||||
rc = wpan_phy_register(local->phy);
|
||||
if (rc < 0)
|
||||
goto out_wq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue