mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
nl802154: fix cca mode wpan phy flag
This patch fix the handling to call cca mode setting. If the phy isn't flag then the driver doesn't support this setting. Signed-off-by: Alexander Aring <[email protected]> Reported-by: Varka Bhadram <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
641459ca33
commit
fc4f805243
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ static int nl802154_set_cca_mode(struct sk_buff *skb, struct genl_info *info)
|
|||
struct cfg802154_registered_device *rdev = info->user_ptr[0];
|
||||
struct wpan_phy_cca cca;
|
||||
|
||||
if (rdev->wpan_phy.flags & WPAN_PHY_FLAG_CCA_MODE)
|
||||
if (!(rdev->wpan_phy.flags & WPAN_PHY_FLAG_CCA_MODE))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (!info->attrs[NL802154_ATTR_CCA_MODE])
|
||||
|
|
|
|||
Loading…
Reference in a new issue