VOID Sta11FreeStation( __in PSTATION pStation ) { MPVERIFY(pStation); // Cleanup anything we create for scan StaFreeScanContext(pStation); // Cleanup connection context StaFreeConnectionContext(pStation); // Free any memory allocated for Adhoc StaFreeAdHocStaInfo(pStation); MP_FREE_MEMORY(pStation); }
VOID Sta11FreePort( _In_ PMP_PORT Port ) { PMP_EXTSTA_PORT extStaPort = MP_GET_STA_PORT(Port); // Cleanup anything we create for scan StaFreeScanContext(extStaPort); // Cleanup connection context StaFreeConnectionContext(extStaPort); // Free any memory allocated for Adhoc StaFreeAdHocStaInfo(extStaPort); MP_FREE_MEMORY(extStaPort); }