|
@@ -778,6 +778,31 @@ typedef struct {
|
|
|
bool isSafe;
|
|
|
} sapSafeChannelType;
|
|
|
#endif /* FEATURE_WLAN_CH_AVOID */
|
|
|
+
|
|
|
+/**
|
|
|
+ * struct sap_context - per-BSS Context for SAP
|
|
|
+ *
|
|
|
+ * struct sap_context is used to share per-BSS context between SAP and
|
|
|
+ * its clients. A context is generated by wlansap_open() and is
|
|
|
+ * destroyed by wlansap_close(). During the lifetime of the BSS the
|
|
|
+ * SAP context is passed as the primary parameter to SAP APIs. Note
|
|
|
+ * that by design the contents of the structure are opaque to the
|
|
|
+ * clients and a SAP context pointer must only be dereferenced by SAP.
|
|
|
+ */
|
|
|
+struct sap_context;
|
|
|
+
|
|
|
+/**
|
|
|
+ * wlansap_open() - WLAN SAP open function call
|
|
|
+ *
|
|
|
+ * Called at BSS initialization to generate a context for the BSS. SAP
|
|
|
+ * will initialize all its internal resources and will wait for the
|
|
|
+ * call to wlan_start() to register with the other modules.
|
|
|
+ *
|
|
|
+ * Return: Pointer to the SAP context, or NULL if a context could not
|
|
|
+ * be allocated
|
|
|
+ */
|
|
|
+struct sap_context *wlansap_open(void);
|
|
|
+
|
|
|
void sap_cleanup_channel_list(void *sapContext);
|
|
|
|
|
|
/**
|
|
@@ -788,7 +813,6 @@ void sap_cleanup_channel_list(void *sapContext);
|
|
|
*/
|
|
|
bool sap_is_auto_channel_select(void *pvos_gctx);
|
|
|
|
|
|
-void *wlansap_open(void);
|
|
|
QDF_STATUS wlansap_global_init(void);
|
|
|
QDF_STATUS wlansap_global_deinit(void);
|
|
|
QDF_STATUS wlansap_start(void *p_cds_gctx, enum tQDF_ADAPTER_MODE mode,
|