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>
This commit is contained in:

committed by
David S. Miller

parent
84dda3c648
commit
ba08fea53a
@@ -122,6 +122,10 @@ struct ieee802154_dev {
|
||||
* Enables or disables listen before talk on the device. Called with
|
||||
* pib_lock held.
|
||||
* Returns either zero, or negative errno.
|
||||
*
|
||||
* set_cca_mode
|
||||
* Sets the CCA mode used by the device. Called with pib_lock held.
|
||||
* Returns either zero, or negative errno.
|
||||
*/
|
||||
struct ieee802154_ops {
|
||||
struct module *owner;
|
||||
@@ -140,6 +144,7 @@ struct ieee802154_ops {
|
||||
u8 addr[IEEE802154_ADDR_LEN]);
|
||||
int (*set_txpower)(struct ieee802154_dev *dev, int db);
|
||||
int (*set_lbt)(struct ieee802154_dev *dev, bool on);
|
||||
int (*set_cca_mode)(struct ieee802154_dev *dev, u8 mode);
|
||||
};
|
||||
|
||||
/* Basic interface to register ieee802154 device */
|
||||
|
Reference in New Issue
Block a user