auth-proto: add auth_proto_rx_oci

This allows auth protos to get notified when the chandef has been
set. Since netdev sets chandef already there is no arguments.
This commit is contained in:
James Prestwood 2021-09-28 08:46:52 -07:00 committed by Denis Kenzior
parent 08936c1534
commit 7474ff0975
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,7 @@ struct auth_proto {
const uint8_t *frame, size_t len);
int (*rx_associate)(struct auth_proto *driver,
const uint8_t *frame, size_t len);
int (*rx_oci)(struct auth_proto *driver);
bool (*auth_timeout)(struct auth_proto *ap);
bool (*assoc_timeout)(struct auth_proto *ap);
uint8_t prev_bssid[6];
@ -98,3 +99,11 @@ static inline bool auth_proto_assoc_timeout(struct auth_proto *ap)
return false;
}
static inline int auth_proto_rx_oci(struct auth_proto *ap)
{
if (ap && ap->rx_oci)
return ap->rx_oci(ap);
return -ENOTSUP;
}