summaryrefslogtreecommitdiffstats
path: root/include/net/wpan-phy.h
diff options
context:
space:
mode:
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>2014-02-17 11:34:11 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-17 16:42:38 -0500
commitba08fea53a43e02b590d89224afdad976dece841 (patch)
treeb7cfcfcfc9b923360c477e55df12a501eda169b0 /include/net/wpan-phy.h
parent84dda3c648fd55898064d76366b14f964cdc9d16 (diff)
ieee802154: add support for CCA mode in wpan phys
The standard describes four modes of clear channel assesment: "energy above threshold", "carrier found", and the logical and/or of these two. Support for CCA mode setting is included in the at86rf230 driver, predicated for RF212 chips. Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/wpan-phy.h')
-rw-r--r--include/net/wpan-phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/wpan-phy.h b/include/net/wpan-phy.h
index 804e6c4f5f8..03b59051972 100644
--- a/include/net/wpan-phy.h
+++ b/include/net/wpan-phy.h
@@ -58,6 +58,7 @@ struct wpan_phy {
int (*set_txpower)(struct wpan_phy *phy, int db);
int (*set_lbt)(struct wpan_phy *phy, bool on);
+ int (*set_cca_mode)(struct wpan_phy *phy, u8 cca_mode);
char priv[0] __attribute__((__aligned__(NETDEV_ALIGN)));
};