Lines Matching refs:req
880 struct HdfSBuf *req = NULL;
882 req = HdfSbufObtainDefaultSize();
883 if (req == NULL) {
889 if (!HdfSbufWriteString(req, ifName)) {
893 if (!HdfSbufWriteInt32(req, param->cmdId)) {
897 if (!HdfSbufWriteBuffer(req, param->buf, param->bufLen)) {
901 ret = SendCmdSync(WIFI_HAL_CMD_CONFIG_PROJECTION_SCREEN, req, NULL);
907 HdfSbufRecycle(req);
914 struct HdfSBuf *req = NULL;
916 req = HdfSbufObtainDefaultSize();
917 if (req == NULL) {
923 if (!HdfSbufWriteString(req, ifName)) {
927 if (!HdfSbufWriteInt32(req, cmdId)) {
931 if (!HdfSbufWriteBuffer(req, paramBuf, paramBufLen)) {
935 ret = SendCmdSync(WIFI_HAL_CMD_SET_CMD_IOCTL, req, NULL);
941 HdfSbufRecycle(req);
987 static int32_t SerializeSettingsToSbuf(struct HdfSBuf *req, const WifiPnoSettings *pnoSettings)
989 if (!HdfSbufWriteInt32(req, pnoSettings->min2gRssi)) {
993 if (!HdfSbufWriteInt32(req, pnoSettings->min5gRssi)) {
997 if (!HdfSbufWriteInt32(req, pnoSettings->scanIntervalMs)) {
1001 if (!HdfSbufWriteInt32(req, pnoSettings->scanIterations)) {
1005 if (!HdfSbufWriteUint32(req, pnoSettings->pnoNetworksLen)) {
1010 if (!HdfSbufWriteUint8(req, pnoSettings->pnoNetworks[i].isHidden)) {
1014 if (!HdfSbufWriteBuffer(req, pnoSettings->pnoNetworks[i].freqs,
1019 if (!HdfSbufWriteBuffer(req, pnoSettings->pnoNetworks[i].ssid.ssid,
1031 struct HdfSBuf *req = NULL;
1037 req = HdfSbufObtain(PNO_SCAN_INFO_MAXSIZE);
1038 if (req == NULL) {
1043 if (!HdfSbufWriteString(req, ifName)) {
1047 if (SerializeSettingsToSbuf(req, pnoSettings) != RET_CODE_SUCCESS) {
1051 ret = SendCmdSync(WIFI_HAL_CMD_START_PNO_SCAN, req, NULL);
1056 HdfSbufRecycle(req);
1063 struct HdfSBuf *req = NULL;
1065 req = HdfSbufObtainDefaultSize();
1066 if (req == NULL) {
1072 if (!HdfSbufWriteString(req, ifName)) {
1076 ret = SendCmdSync(WIFI_HAL_CMD_STOP_PNO_SCAN, req, NULL);
1082 HdfSbufRecycle(req);