Lines Matching refs:result
95 int result; in createRequest() local
100 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_START_MKEEP_ALIVE); in createRequest()
101 if (result != WIFI_SUCCESS) { in createRequest()
102 ALOGE("Failed to create start keep alive request; result = %d", result); in createRequest()
103 return result; in createRequest()
108 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest()
109 if (result < 0) { in createRequest()
110 ALOGE("Failed to put id request; result = %d", result); in createRequest()
111 return result; in createRequest()
114 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN, mIpPktLen); in createRequest()
115 if (result < 0) { in createRequest()
116 ALOGE("Failed to put ip pkt len request; result = %d", result); in createRequest()
117 return result; in createRequest()
120 result = request.put(MKEEP_ALIVE_ATTRIBUTE_IP_PKT, (u8*)mIpPkt, mIpPktLen); in createRequest()
121 if (result < 0) { in createRequest()
122 ALOGE("Failed to put ip pkt request; result = %d", result); in createRequest()
123 return result; in createRequest()
126 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_SRC_MAC_ADDR, mSrcMacAddr); in createRequest()
127 if (result < 0) { in createRequest()
128 ALOGE("Failed to put src mac address request; result = %d", result); in createRequest()
129 return result; in createRequest()
132 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_DST_MAC_ADDR, mDstMacAddr); in createRequest()
133 if (result < 0) { in createRequest()
134 ALOGE("Failed to put dst mac address request; result = %d", result); in createRequest()
135 return result; in createRequest()
138 result = request.put_u32(MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC, mPeriodMsec); in createRequest()
139 if (result < 0) { in createRequest()
140 ALOGE("Failed to put period request; result = %d", result); in createRequest()
141 return result; in createRequest()
150 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_STOP_MKEEP_ALIVE); in createRequest()
151 if (result != WIFI_SUCCESS) { in createRequest()
152 ALOGE("Failed to create stop keep alive request; result = %d", result); in createRequest()
153 return result; in createRequest()
158 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest()
159 if (result < 0) { in createRequest()
160 ALOGE("Failed to put id request; result = %d", result); in createRequest()
161 return result; in createRequest()
170 result = WIFI_ERROR_UNKNOWN; in createRequest()
172 return result; in createRequest()
178 int result = createRequest(request); in start() local
179 if (result != WIFI_SUCCESS) { in start()
180 ALOGE("Failed to create keep alive request; result = %d", result); in start()
181 return result; in start()
184 result = requestResponse(request); in start()
185 if (result != WIFI_SUCCESS) { in start()
186 ALOGE("Failed to register keep alive response; result = %d", result); in start()
188 return result; in start()
228 wifi_error result = (wifi_error)cmd->start(); in wifi_start_sending_offloaded_packet() local
230 return result; in wifi_start_sending_offloaded_packet()
243 wifi_error result = (wifi_error)cmd->start(); in wifi_stop_sending_offloaded_packet() local
245 return result; in wifi_stop_sending_offloaded_packet()