mac802154: add support for promiscuous mode
This patch adds a new driver operation to bring the transceiver into promiscuous mode. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

کامیت شده توسط
Marcel Holtmann

والد
c8fc84ed60
کامیت
94b792220c
@@ -210,4 +210,17 @@ static inline int drv_set_max_frame_retries(struct ieee802154_local *local,
|
||||
return local->ops->set_frame_retries(&local->hw, max_frame_retries);
|
||||
}
|
||||
|
||||
static inline int drv_set_promiscuous_mode(struct ieee802154_local *local,
|
||||
const bool on)
|
||||
{
|
||||
might_sleep();
|
||||
|
||||
if (!local->ops->set_promiscuous_mode) {
|
||||
WARN_ON(1);
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
return local->ops->set_promiscuous_mode(&local->hw, on);
|
||||
}
|
||||
|
||||
#endif /* __MAC802154_DRVIER_OPS */
|
||||
|
مرجع در شماره جدید
Block a user