^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (c) 2005 Network Appliance, Inc. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #ifndef IW_CM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #define IW_CM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/in.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <rdma/ib_cm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct iw_cm_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) enum iw_cm_event_type {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) IW_CM_EVENT_CONNECT_REQUEST = 1, /* connect request received */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) IW_CM_EVENT_CONNECT_REPLY, /* reply from active connect request */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) IW_CM_EVENT_ESTABLISHED, /* passive side accept successful */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) IW_CM_EVENT_DISCONNECT, /* orderly shutdown */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) IW_CM_EVENT_CLOSE /* close complete */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct iw_cm_event {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) enum iw_cm_event_type event;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int status;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct sockaddr_storage local_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct sockaddr_storage remote_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) void *private_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) void *provider_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) u8 private_data_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) u8 ord;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) u8 ird;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) * iw_cm_handler - Function to be called by the IW CM when delivering events
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) * to the client.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) * @cm_id: The IW CM identifier associated with the event.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * @event: Pointer to the event structure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) typedef int (*iw_cm_handler)(struct iw_cm_id *cm_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) struct iw_cm_event *event);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) * iw_event_handler - Function called by the provider when delivering provider
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) * events to the IW CM. Returns either 0 indicating the event was processed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) * or -errno if the event could not be processed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) * @cm_id: The IW CM identifier associated with the event.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) * @event: Pointer to the event structure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) typedef int (*iw_event_handler)(struct iw_cm_id *cm_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) struct iw_cm_event *event);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) struct iw_cm_id {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) iw_cm_handler cm_handler; /* client callback function */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) void *context; /* client cb context */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) struct ib_device *device;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) struct sockaddr_storage local_addr; /* local addr */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) struct sockaddr_storage remote_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) struct sockaddr_storage m_local_addr; /* nmapped local addr */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) struct sockaddr_storage m_remote_addr; /* nmapped rem addr */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) void *provider_data; /* provider private data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) iw_event_handler event_handler; /* cb for provider
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) events */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) /* Used by provider to add and remove refs on IW cm_id */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) void (*add_ref)(struct iw_cm_id *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) void (*rem_ref)(struct iw_cm_id *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) u8 tos;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) bool tos_set:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) bool mapped:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) struct iw_cm_conn_param {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) const void *private_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) u16 private_data_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) u32 ord;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) u32 ird;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) u32 qpn;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) enum iw_flags {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) * This flag allows the iwcm and iwpmd to still advertise
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) * mappings but the real and mapped port numbers are the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) * same. Further, iwpmd will not bind any user socket to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) * reserve the port. This is required for soft iwarp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) * to play in the port mapped iwarp space.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) IW_F_NO_PORT_MAP = (1 << 0),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) * iw_create_cm_id - Create an IW CM identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) * @device: The IB device on which to create the IW CM identier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) * @event_handler: User callback invoked to report events associated with the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) * returned IW CM identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) * @context: User specified context associated with the id.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) struct iw_cm_id *iw_create_cm_id(struct ib_device *device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) iw_cm_handler cm_handler, void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) * iw_destroy_cm_id - Destroy an IW CM identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) * @cm_id: The previously created IW CM identifier to destroy.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) * The client can assume that no events will be delivered for the CM ID after
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) * this function returns.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) void iw_destroy_cm_id(struct iw_cm_id *cm_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) * iw_cm_bind_qp - Unbind the specified IW CM identifier and QP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) * @cm_id: The IW CM idenfier to unbind from the QP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) * @qp: The QP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) * This is called by the provider when destroying the QP to ensure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) * that any references held by the IWCM are released. It may also
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) * be called by the IWCM when destroying a CM_ID to that any
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) * references held by the provider are released.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) void iw_cm_unbind_qp(struct iw_cm_id *cm_id, struct ib_qp *qp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) * iw_cm_get_qp - Return the ib_qp associated with a QPN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) * @ib_device: The IB device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) * @qpn: The queue pair number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) struct ib_qp *iw_cm_get_qp(struct ib_device *device, int qpn);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) * iw_cm_listen - Listen for incoming connection requests on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) * specified IW CM id.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) * @cm_id: The IW CM identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) * @backlog: The maximum number of outstanding un-accepted inbound listen
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) * requests to queue.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) * The source address and port number are specified in the IW CM identifier
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) * structure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) int iw_cm_listen(struct iw_cm_id *cm_id, int backlog);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) * iw_cm_accept - Called to accept an incoming connect request.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) * @cm_id: The IW CM identifier associated with the connection request.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) * @iw_param: Pointer to a structure containing connection establishment
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) * parameters.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) * The specified cm_id will have been provided in the event data for a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) * CONNECT_REQUEST event. Subsequent events related to this connection will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) * delivered to the specified IW CM identifier prior and may occur prior to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) * the return of this function. If this function returns a non-zero value, the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) * client can assume that no events will be delivered to the specified IW CM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) * identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) int iw_cm_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) * iw_cm_reject - Reject an incoming connection request.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) * @cm_id: Connection identifier associated with the request.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) * @private_daa: Pointer to data to deliver to the remote peer as part of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) * reject message.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) * @private_data_len: The number of bytes in the private_data parameter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) * The client can assume that no events will be delivered to the specified IW
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) * CM identifier following the return of this function. The private_data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) * buffer is available for reuse when this function returns.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) int iw_cm_reject(struct iw_cm_id *cm_id, const void *private_data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) u8 private_data_len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) * iw_cm_connect - Called to request a connection to a remote peer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) * @cm_id: The IW CM identifier for the connection.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) * @iw_param: Pointer to a structure containing connection establishment
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) * parameters.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) * Events may be delivered to the specified IW CM identifier prior to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) * return of this function. If this function returns a non-zero value, the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) * client can assume that no events will be delivered to the specified IW CM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) * identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) int iw_cm_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) * iw_cm_disconnect - Close the specified connection.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) * @cm_id: The IW CM identifier to close.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) * @abrupt: If 0, the connection will be closed gracefully, otherwise, the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) * connection will be reset.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) * The IW CM identifier is still active until the IW_CM_EVENT_CLOSE event is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) * delivered.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) * iw_cm_init_qp_attr - Called to initialize the attributes of the QP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) * associated with a IW CM identifier.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) * @cm_id: The IW CM identifier associated with the QP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) * @qp_attr: Pointer to the QP attributes structure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) * @qp_attr_mask: Pointer to a bit vector specifying which QP attributes are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) * valid.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) int iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) int *qp_attr_mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) * iwcm_reject_msg - return a pointer to a reject message string.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) * @reason: Value returned in the REJECT event status field.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) const char *__attribute_const__ iwcm_reject_msg(int reason);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) #endif /* IW_CM_H */