]> git.baikalelectronics.ru Git - kernel.git/commit
net: mac802154: Save a global error code on transmissions
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 Apr 2022 10:08:56 +0000 (12:08 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 25 Apr 2022 18:51:12 +0000 (20:51 +0200)
commitcc34da09ac8c83e581fe8377e8f8c17375d2895f
tree14a2b1ab8a8099b7ba5b349349be490ed7bfb8ea
parent2d634035dbd34e903bc6a785c8fe80049a197e2e
net: mac802154: Save a global error code on transmissions

So far no error is returned from a failing transmission. However it
might sometimes be useful, and particularly easy to use during sync
transfers (for certain MLME commands). Let's create an internal variable
for that, global to the device. Right now only success are registered,
which is rather useless, but soon we will have more situations filling
this field.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220407100903.1695973-4-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/mac802154/ieee802154_i.h
net/mac802154/util.c