• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/wireless/wl12xx/

Lines Matching refs:cmd

53 	struct wl1271_cmd_header *cmd;
60 cmd = buf;
61 cmd->id = cpu_to_le16(id);
62 cmd->status = 0;
92 wl1271_read(wl, wl->cmd_box_addr, cmd, res_len, false);
94 status = le16_to_cpu(cmd->status);
214 wl1271_debug(DEBUG_CMD, "cmd join");
244 wl1271_error("failed to initiate cmd join");
250 wl1271_error("cmd join event completion error");
272 wl1271_debug(DEBUG_CMD, "cmd test");
300 wl1271_debug(DEBUG_CMD, "cmd interrogate");
327 wl1271_debug(DEBUG_CMD, "cmd configure");
345 struct cmd_enabledisable_path *cmd;
349 wl1271_debug(DEBUG_CMD, "cmd data path");
351 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
352 if (!cmd) {
358 cmd->channel = 1;
368 ret = wl1271_cmd_send(wl, cmd_rx, cmd, sizeof(*cmd), 0);
370 wl1271_error("rx %s cmd for channel %d failed",
371 enable ? "start" : "stop", cmd->channel);
375 wl1271_debug(DEBUG_BOOT, "rx %s cmd channel %d",
376 enable ? "start" : "stop", cmd->channel);
378 ret = wl1271_cmd_send(wl, cmd_tx, cmd, sizeof(*cmd), 0);
380 wl1271_error("tx %s cmd for channel %d failed",
381 enable ? "start" : "stop", cmd->channel);
385 wl1271_debug(DEBUG_BOOT, "tx %s cmd channel %d",
386 enable ? "start" : "stop", cmd->channel);
389 kfree(cmd);
404 wl1271_debug(DEBUG_CMD, "cmd set ps mode");
421 wl1271_error("cmd set_ps_mode failed");
433 struct cmd_read_write_memory *cmd;
436 wl1271_debug(DEBUG_CMD, "cmd read memory");
438 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
439 if (!cmd) {
447 cmd->addr = cpu_to_le32(addr);
448 cmd->size = cpu_to_le32(len);
450 ret = wl1271_cmd_send(wl, CMD_READ_MEMORY, cmd, sizeof(*cmd),
451 sizeof(*cmd));
458 memcpy(answer, cmd->value, len);
461 kfree(cmd);
468 struct wl1271_cmd_template_set *cmd;
471 wl1271_debug(DEBUG_CMD, "cmd template_set %d", template_id);
476 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
477 if (!cmd) {
482 cmd->len = cpu_to_le16(buf_len);
483 cmd->template_type = template_id;
484 cmd->enabled_rates = cpu_to_le32(rates);
485 cmd->short_retry_limit = wl->conf.tx.rc_conf.short_retry_limit;
486 cmd->long_retry_limit = wl->conf.tx.rc_conf.long_retry_limit;
487 cmd->index = index;
490 memcpy(cmd->template_data, buf, buf_len);
492 ret = wl1271_cmd_send(wl, CMD_SET_TEMPLATE, cmd, sizeof(*cmd), 0);
494 wl1271_warning("cmd set_template failed: %d", ret);
499 kfree(cmd);
530 wl1271_warning("cmd buld null data failed %d", ret);
553 wl1271_warning("cmd build klv null data failed %d", ret);
629 struct wl1271_cmd_set_keys *cmd;
632 wl1271_debug(DEBUG_CMD, "cmd set_default_wep_key %d", id);
634 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
635 if (!cmd) {
640 cmd->id = id;
641 cmd->key_action = cpu_to_le16(KEY_SET_ID);
642 cmd->key_type = KEY_WEP;
644 ret = wl1271_cmd_send(wl, CMD_SET_KEYS, cmd, sizeof(*cmd), 0);
646 wl1271_warning("cmd set_default_wep_key failed: %d", ret);
651 kfree(cmd);
660 struct wl1271_cmd_set_keys *cmd;
663 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
664 if (!cmd) {
670 memcpy(cmd->addr, addr, ETH_ALEN);
672 cmd->key_action = cpu_to_le16(action);
673 cmd->key_size = key_size;
674 cmd->key_type = key_type;
676 cmd->ac_seq_num16[0] = cpu_to_le16(tx_seq_16);
677 cmd->ac_seq_num32[0] = cpu_to_le32(tx_seq_32);
680 cmd->ssid_profile = 0;
682 cmd->id = id;
691 memcpy(cmd->key, key, 16);
692 memcpy(cmd->key + 16, key + 24, 8);
693 memcpy(cmd->key + 24, key + 16, 8);
696 memcpy(cmd->key, key, key_size);
699 wl1271_dump(DEBUG_CRYPT, "TARGET KEY: ", cmd, sizeof(*cmd));
701 ret = wl1271_cmd_send(wl, CMD_SET_KEYS, cmd, sizeof(*cmd), 0);
708 kfree(cmd);
715 struct wl1271_cmd_disconnect *cmd;
718 wl1271_debug(DEBUG_CMD, "cmd disconnect");
720 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
721 if (!cmd) {
726 cmd->rx_config_options = cpu_to_le32(wl->rx_config);
727 cmd->rx_filter_options = cpu_to_le32(wl->rx_filter);
729 cmd->type = DISCONNECT_IMMEDIATE;
731 ret = wl1271_cmd_send(wl, CMD_DISCONNECT, cmd, sizeof(*cmd), 0);
739 wl1271_error("cmd disconnect event completion error");
742 kfree(cmd);