]> Git Repo - linux.git/commitdiff
ieee802154: ca8210: Flag the driver as being limited
authorMiquel Raynal <[email protected]>
Fri, 24 Mar 2023 11:05:58 +0000 (12:05 +0100)
committerStefan Schmidt <[email protected]>
Fri, 24 Mar 2023 16:19:29 +0000 (17:19 +0100)
This is a hardMAC device wired to Linux 802154 softMAC
implementation. It is a bit limited in the sense that it cannot handle
anything else that datagrams. Let's flag it like this to prevent using
unsupported features such as scan/beacons handling.

Signed-off-by: Miquel Raynal <[email protected]>
Acked-by: Alexander Aring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stefan Schmidt <[email protected]>
drivers/net/ieee802154/ca8210.c

index 1eada1db8dcf79b8ba8d4a85d4c0b6bb68191b46..567e95f00001101b8c906ec6e1d82b9e34fe65c1 100644 (file)
@@ -2945,7 +2945,8 @@ static void ca8210_hw_setup(struct ieee802154_hw *ca8210_hw)
        ca8210_hw->phy->flags =
                WPAN_PHY_FLAG_TXPOWER |
                WPAN_PHY_FLAG_CCA_ED_LEVEL |
-               WPAN_PHY_FLAG_CCA_MODE;
+               WPAN_PHY_FLAG_CCA_MODE |
+               WPAN_PHY_FLAG_DATAGRAMS_ONLY;
 }
 
 /**
This page took 0.051685 seconds and 4 git commands to generate.