mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
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:
parent
08936c1534
commit
7474ff0975
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user