• Home
  • Raw
  • Download

Lines Matching refs:cmd

57 wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg)  in wifi_register_handler()  argument
66 if(info->event_cb[i].nl_cmd == cmd && in wifi_register_handler()
70 " and arg %p", func, cmd, arg); in wifi_register_handler()
77 info->event_cb[info->num_event_cb].nl_cmd = cmd; in wifi_register_handler()
83 ALOGI("Successfully added event handler %p for command %d", func, cmd); in wifi_register_handler()
133 void wifi_unregister_handler(wifi_handle handle, int cmd) in wifi_unregister_handler() argument
137 if (cmd == NL80211_CMD_VENDOR) { in wifi_unregister_handler()
145 if (info->event_cb[i].nl_cmd == cmd) { in wifi_unregister_handler()
154 ALOGI("Successfully removed event handler for command %d", cmd); in wifi_unregister_handler()
190 wifi_error wifi_register_cmd(wifi_handle handle, int id, WifiCommand *cmd) in wifi_register_cmd() argument
197 info->cmd[info->num_cmd].id = id; in wifi_register_cmd()
198 info->cmd[info->num_cmd].cmd = cmd; in wifi_register_cmd()
200 ALOGI("Successfully added command %d: %p", id, cmd); in wifi_register_cmd()
214 if (info->cmd[i].id == id) { in wifi_unregister_cmd()
215 WifiCommand *cmd = info->cmd[i].cmd; in wifi_unregister_cmd() local
216 memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i) * sizeof(cmd_info)); in wifi_unregister_cmd()
218 ALOGI("Successfully removed command %d: %p", id, cmd); in wifi_unregister_cmd()
219 return cmd; in wifi_unregister_cmd()
226 void wifi_unregister_cmd(wifi_handle handle, WifiCommand *cmd) in wifi_unregister_cmd() argument
231 if (info->cmd[i].cmd == cmd) { in wifi_unregister_cmd()
232 int id = info->cmd[i].id; in wifi_unregister_cmd()
233 memmove(&info->cmd[i], &info->cmd[i+1], (info->num_cmd - i) * sizeof(cmd_info)); in wifi_unregister_cmd()
235 ALOGI("Successfully removed command %d: %p", id, cmd); in wifi_unregister_cmd()