At one time the WLAN driver only supported a single SAP. At that time most SAP APIs took the global context pointer as a param, and from that they could extract the pointer to the one & only SAP context. Later the MBSSID feature was added, and conditional compilation was introduced such that either the global context pointer or a per-BSS SAP context pointer was used. Finally in qcacld-3.0 the conditional compilation was removed, leaving just the MBSSID behavior. However one of the artifacts that was left behind was that the SAP APIs are currently defined to take a void *context which prevents the compiler from performing proper type checking. Update wlansap_open() to return the true struct pointer type so that it can then be used by other SAP APIs. Change-Id: I216ed653e4feb9960357a168d4981e7a7a92411e CRs-Fixed: 2116267 |
||
---|---|---|
.. | ||
sap_api.h |