Lines Matching full:command

114  * Android private command strings, PLEASE define new private commands here
176 /* Hostapd private command */
296 /* Customer requested to Remove OKCMODE command */
605 /* natoe command info structure */
607 uint8 *command; /* pointer to the actual command */ member
608 uint16 tot_len; /* total length of the command */
614 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
626 char *command, int total_len);
628 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
630 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
632 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
634 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
636 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
735 /* setup command name to value conversion */
749 /* drv command info structure */
751 uint8 *command; /* pointer to the actual command */ member
752 uint16 tot_len; /* total length of the command */
758 const wl_drv_sub_cmd_t *cmd, char *command, wl_drv_cmd_info_t *cmd_info);
778 char *command, int total_len);
780 const wl_drv_sub_cmd_t *cmd, char *command, wl_drv_cmd_info_t *cmd_info);
782 const wl_drv_sub_cmd_t *cmd, char *command, wl_drv_cmd_info_t *cmd_info);
820 /* commands: mapping between the command enumeration and the actual function */
879 int wl_cfg80211_set_btcoex_dhcp(struct net_device *dev, dhd_pub_t *dhd, char *command);
901 static int wl_android_wtc_config(struct net_device *dev, char *command, int total_len);
904 static int wl_android_wbtext(struct net_device *dev, char *command, int total_len);
906 char *command, int total_len);
908 char *command, int total_len);
910 char *command, int total_len);
985 /* private command support for restoring roam/scan parameters */
989 typedef int (*PRIV_CMD_HANDLER) (struct net_device *dev, char *command);
990 typedef int (*PRIV_CMD_HANDLER_WITH_LEN) (struct net_device *dev, char *command, int total_len);
999 char command[64]; member
1008 /* function prototypes of private command handler */
1009 static int wl_android_default_set_scan_params(struct net_device *dev, char *command, int total_len);
1010 static int wl_android_set_roam_trigger(struct net_device *dev, char* command);
1011 int wl_android_set_roam_delta(struct net_device *dev, char* command);
1012 int wl_android_set_roam_scan_period(struct net_device *dev, char* command);
1013 int wl_android_set_full_roam_scan_period(struct net_device *dev, char* command);
1014 int wl_android_set_roam_scan_control(struct net_device *dev, char *command);
1015 int wl_android_set_scan_channel_time(struct net_device *dev, char *command);
1016 int wl_android_set_scan_home_time(struct net_device *dev, char *command);
1017 int wl_android_set_scan_home_away_time(struct net_device *dev, char *command);
1018 int wl_android_set_scan_nprobes(struct net_device *dev, char *command);
1019 static int wl_android_set_band(struct net_device *dev, char *command);
1020 int wl_android_set_scan_dfs_channel_mode(struct net_device *dev, char *command);
1021 int wl_android_set_wes_mode(struct net_device *dev, char *command);
1022 int wl_android_set_okc_mode(struct net_device *dev, char *command);
1100 char command[64]; member
1171 struct net_device *dev, char *command, bool enable) in wl_android_set_wfds_hash() argument
1186 wfds_hash = (wl_p2p_wfds_hash_t *)(command + strlen(CMD_ADD_WFDS_HASH) + 1); in wl_android_set_wfds_hash()
1191 wfds_hash = (wl_p2p_wfds_hash_t *)(command + strlen(CMD_DEL_WFDS_HASH) + 1); in wl_android_set_wfds_hash()
1197 ANDROID_ERROR(("wl_android_set_wfds_hash: failed to %s, error=%d\n", command, error)); in wl_android_set_wfds_hash()
1207 static int wl_android_get_link_speed(struct net_device *net, char *command, int total_len) in wl_android_get_link_speed() argument
1221 bytes_written = snprintf(command, total_len, "LinkSpeed %d", link_speed); in wl_android_get_link_speed()
1222 ANDROID_INFO(("wl_android_get_link_speed: command result is %s\n", command)); in wl_android_get_link_speed()
1226 static int wl_android_get_rssi(struct net_device *net, char *command, int total_len) in wl_android_get_rssi() argument
1239 delim = strchr(command, ' '); in wl_android_get_rssi()
1240 /* For Ap mode rssi command would be in wl_android_get_rssi()
1260 * In this case, format of private command is as following, in wl_android_get_rssi()
1299 memcpy(command, ssid.SSID, ssid.SSID_len); in wl_android_get_rssi()
1305 bytes_written += scnprintf(&command[bytes_written], total_len - bytes_written, in wl_android_get_rssi()
1307 command[bytes_written] = '\0'; in wl_android_get_rssi()
1309 ANDROID_TRACE(("wl_android_get_rssi: command result is %s (%d)\n", command, bytes_written)); in wl_android_get_rssi()
1313 static int wl_android_set_suspendopt(struct net_device *dev, char *command) in wl_android_set_suspendopt() argument
1319 suspend_flag = *(command + strlen(CMD_SETSUSPENDOPT) + 1) - '0'; in wl_android_set_suspendopt()
1338 static int wl_android_set_suspendmode(struct net_device *dev, char *command) in wl_android_set_suspendmode() argument
1345 suspend_flag = *(command + strlen(CMD_SETSUSPENDMODE) + 1) - '0'; in wl_android_set_suspendmode()
1359 int wl_android_get_80211_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_80211_mode() argument
1370 bytes_written = snprintf(command, total_len, "%s %s", CMD_80211_MODE, mode); in wl_android_get_80211_mode()
1371 ANDROID_INFO(("wl_android_get_80211_mode: command:%s EXIT\n", command)); in wl_android_get_80211_mode()
1378 int wl_android_get_chanspec(struct net_device *dev, char *command, int total_len) in wl_android_get_chanspec() argument
1389 /* command is in wl_android_get_chanspec()
1440 bytes_written = snprintf(command, total_len, "%s channel %d band %s bw %d", CMD_CHANSPEC, in wl_android_get_chanspec()
1443 ANDROID_INFO(("wl_android_get_chanspec: command:%s EXIT\n", command)); in wl_android_get_chanspec()
1450 int wl_android_get_datarate(struct net_device *dev, char *command, int total_len) in wl_android_get_datarate() argument
1462 bytes_written = snprintf(command, total_len, "%s %d", CMD_DATARATE, (datarate/2)); in wl_android_get_datarate()
1465 int wl_android_get_assoclist(struct net_device *dev, char *command, int total_len) in wl_android_get_assoclist() argument
1484 bytes_written = snprintf(command, total_len, "%s listcount: %d Stations:", in wl_android_get_assoclist()
1488 len = snprintf(command + bytes_written, total_len - bytes_written, " " MACDBG, in wl_android_get_assoclist()
1509 static int wl_android_set_csa(struct net_device *dev, char *command) in wl_android_set_csa() argument
1517 ANDROID_INFO(("wl_android_set_csa: command:%s\n", command)); in wl_android_set_csa()
1519 command = (command + strlen(CMD_SET_CSA)); in wl_android_set_csa()
1521 if (!*++command) { in wl_android_set_csa()
1525 csa_arg.mode = bcm_atoi(command); in wl_android_set_csa()
1532 if (!*++command) { in wl_android_set_csa()
1536 command++; in wl_android_set_csa()
1537 csa_arg.count = bcm_atoi(command); in wl_android_set_csa()
1541 command += 2; in wl_android_set_csa()
1542 if (!*command) { in wl_android_set_csa()
1547 chnsp = wf_chspec_aton(command); in wl_android_set_csa()
1584 wl_android_set_bcn_li_dtim(struct net_device *dev, char *command) in wl_android_set_bcn_li_dtim() argument
1589 dtim = *(command + strlen(CMD_SETDTIM_IN_SUSPEND) + 1) - '0'; in wl_android_set_bcn_li_dtim()
1608 wl_android_set_max_dtim(struct net_device *dev, char *command) in wl_android_set_max_dtim() argument
1613 dtim_flag = *(command + strlen(CMD_MAXDTIM_IN_SUSPEND) + 1) - '0'; in wl_android_set_max_dtim()
1627 wl_android_set_disable_dtim_in_suspend(struct net_device *dev, char *command) in wl_android_set_disable_dtim_in_suspend() argument
1632 dtim_flag = *(command + strlen(CMD_DISDTIM_IN_SUSPEND) + 1) - '0'; in wl_android_set_disable_dtim_in_suspend()
1646 static int wl_android_get_band(struct net_device *dev, char *command, int total_len) in wl_android_get_band() argument
1659 bytes_written = snprintf(command, total_len, "Band %d", band); in wl_android_get_band()
1665 wl_android_set_band(struct net_device *dev, char *command) in wl_android_set_band() argument
1668 uint band = *(command + strlen(CMD_SETBAND) + 1) - '0'; in wl_android_set_band()
1708 wl_android_set_roam_trigger(struct net_device *dev, char* command) in wl_android_set_roam_trigger() argument
1720 sscanf(command, "%*s %10d", &roam_trigger[0]); in wl_android_set_roam_trigger()
1738 wl_android_get_roam_trigger(struct net_device *dev, char *command, int total_len) in wl_android_get_roam_trigger() argument
1818 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_trigger()
1902 wl_android_set_roam_trigger_legacy(struct net_device *dev, char* command) in wl_android_set_roam_trigger_legacy() argument
1907 sscanf(command, "%*s %10d", &roam_trigger[0]); in wl_android_set_roam_trigger_legacy()
1940 struct net_device *dev, char* command) in wl_android_set_roam_delta() argument
1944 sscanf(command, "%*s %10d", &roam_delta[0]); in wl_android_set_roam_delta()
1952 struct net_device *dev, char *command, int total_len) in wl_android_get_roam_delta() argument
1975 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_delta()
1982 struct net_device *dev, char* command) in wl_android_set_roam_scan_period() argument
1986 sscanf(command, "%*s %10d", &roam_scan_period); in wl_android_set_roam_scan_period()
1992 struct net_device *dev, char *command, int total_len) in wl_android_get_roam_scan_period() argument
2001 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_scan_period()
2008 struct net_device *dev, char* command) in wl_android_set_full_roam_scan_period() argument
2014 sscanf(command+sizeof("SETFULLROAMSCANPERIOD"), "%d", &full_roam_scan_period); in wl_android_set_full_roam_scan_period()
2027 struct net_device *dev, char *command, int total_len) in wl_android_get_full_roam_scan_period() argument
2043 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_full_roam_scan_period()
2050 struct net_device *dev, char* command) in wl_android_set_country_rev() argument
2059 sscanf(command+sizeof("SETCOUNTRYREV"), "%3s %10d", country_code, &rev); in wl_android_set_country_rev()
2082 struct net_device *dev, char *command, int total_len) in wl_android_get_country_rev() argument
2102 bytes_written = snprintf(command, total_len, "%s %c%c %d", in wl_android_get_country_rev()
2110 int wl_android_get_roam_scan_control(struct net_device *dev, char *command, int total_len) in wl_android_get_roam_scan_control() argument
2123 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETROAMSCANCONTROL, mode); in wl_android_get_roam_scan_control()
2128 int wl_android_set_roam_scan_control(struct net_device *dev, char *command) in wl_android_set_roam_scan_control() argument
2133 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_roam_scan_control()
2150 wl_android_get_roam_scan_channels(struct net_device *dev, char *command, int total_len, char *cmd) in wl_android_get_roam_scan_channels() argument
2163 bytes_written = snprintf(command, total_len, "%s %d", cmd, nchan); in wl_android_get_roam_scan_channels()
2168 len = snprintf(command + bytes_written, buf_avail, " %d", in wl_android_get_roam_scan_channels()
2180 ANDROID_INFO(("%s\n", command)); in wl_android_get_roam_scan_channels()
2186 wl_android_set_roam_scan_channels(struct net_device *dev, char *command) in wl_android_set_roam_scan_channels() argument
2189 unsigned char *p = (unsigned char *)(command + strlen(CMD_SETROAMSCANCHANNELS) + 1); in wl_android_set_roam_scan_channels()
2215 wl_android_add_roam_scan_channels(struct net_device *dev, char *command, uint cmdlen) in wl_android_add_roam_scan_channels() argument
2222 pcmd = (command + cmdlen + 1); in wl_android_add_roam_scan_channels()
2258 wl_android_get_roam_scan_freqs(struct net_device *dev, char *command, int total_len, char *cmd) in wl_android_get_roam_scan_freqs() argument
2273 bytes_written = snprintf(command, total_len, "%s %d", cmd, nchan); in wl_android_get_roam_scan_freqs()
2285 len = snprintf(command + bytes_written, buf_avail, " %d", freq); in wl_android_get_roam_scan_freqs()
2295 ANDROID_INFO(("%s\n", command)); in wl_android_get_roam_scan_freqs()
2300 wl_android_set_roam_scan_freqs(struct net_device *dev, char *command) in wl_android_set_roam_scan_freqs() argument
2307 pcmd = (command + strlen(CMD_SETROAMSCANFREQS) + 1); in wl_android_set_roam_scan_freqs()
2342 wl_android_add_roam_scan_freqs(struct net_device *dev, char *command, uint cmdlen) in wl_android_add_roam_scan_freqs() argument
2349 pcmd = (command + cmdlen + 1); in wl_android_add_roam_scan_freqs()
2385 wl_android_get_scan_channel_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_channel_time() argument
2397 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANCHANNELTIME, time); in wl_android_get_scan_channel_time()
2403 wl_android_set_scan_channel_time(struct net_device *dev, char *command) in wl_android_set_scan_channel_time() argument
2408 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_channel_time()
2430 wl_android_get_scan_unassoc_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_unassoc_time() argument
2442 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANUNASSOCTIME, time); in wl_android_get_scan_unassoc_time()
2448 wl_android_set_scan_unassoc_time(struct net_device *dev, char *command) in wl_android_set_scan_unassoc_time() argument
2453 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_unassoc_time()
2474 wl_android_get_scan_passive_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_passive_time() argument
2486 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANPASSIVETIME, time); in wl_android_get_scan_passive_time()
2492 wl_android_set_scan_passive_time(struct net_device *dev, char *command) in wl_android_set_scan_passive_time() argument
2497 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_passive_time()
2518 wl_android_get_scan_home_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_home_time() argument
2530 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANHOMETIME, time); in wl_android_get_scan_home_time()
2535 int wl_android_set_scan_home_time(struct net_device *dev, char *command) in wl_android_set_scan_home_time() argument
2540 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_home_time()
2561 wl_android_get_scan_home_away_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_home_away_time() argument
2573 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANHOMEAWAYTIME, time); in wl_android_get_scan_home_away_time()
2579 wl_android_set_scan_home_away_time(struct net_device *dev, char *command) in wl_android_set_scan_home_away_time() argument
2584 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_home_away_time()
2605 wl_android_get_scan_nprobes(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_nprobes() argument
2617 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANNPROBES, num); in wl_android_get_scan_nprobes()
2623 wl_android_set_scan_nprobes(struct net_device *dev, char *command) in wl_android_set_scan_nprobes() argument
2628 if (sscanf(command, "%*s %d", &num) != 1) { in wl_android_set_scan_nprobes()
2643 wl_android_get_scan_dfs_channel_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_dfs_channel_mode() argument
2662 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETDFSSCANMODE, mode); in wl_android_get_scan_dfs_channel_mode()
2668 wl_android_set_scan_dfs_channel_mode(struct net_device *dev, char *command) in wl_android_set_scan_dfs_channel_mode() argument
2674 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_scan_dfs_channel_mode()
2700 wl_android_set_join_prefer(struct net_device *dev, char *command) in wl_android_set_join_prefer() argument
2714 pcmd = command + strlen(CMD_SETJOINPREFER) + 1; in wl_android_set_join_prefer()
2751 int wl_android_send_action_frame(struct net_device *dev, char *command, int total_len) in wl_android_send_action_frame() argument
2768 params = (android_wifi_af_params_t *)(command + strlen(CMD_SENDACTIONFRAME) + 1); in wl_android_send_action_frame()
2852 wl_android_reassoc(struct net_device *dev, char *command, int total_len) in wl_android_reassoc() argument
2861 sscanf(command, "%"S(WL_PRIV_CMD_LEN)"s *", pcmd); in wl_android_reassoc()
2863 ANDROID_ERROR(("Invalid parameters %s\n", command)); in wl_android_reassoc()
2866 params = (android_wifi_reassoc_params_t *)(command + strlen(pcmd) + 1); in wl_android_reassoc()
2901 int wl_android_get_wes_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_wes_mode() argument
2908 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETWESMODE, mode); in wl_android_get_wes_mode()
2913 int wl_android_set_wes_mode(struct net_device *dev, char *command) in wl_android_set_wes_mode() argument
2918 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_wes_mode()
2934 wl_android_get_ncho_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_ncho_mode() argument
2941 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETNCHOMODE, mode); in wl_android_get_ncho_mode()
3003 wl_android_set_pmk(struct net_device *dev, char *command, int total_len) in wl_android_set_pmk() argument
3026 memcpy((char *)pmk, command + strlen("SET_PMK "), 32); in wl_android_set_pmk()
3042 wl_android_okc_enable(struct net_device *dev, char *command) in wl_android_okc_enable() argument
3047 okc_enable = command[strlen(CMD_OKC_ENABLE) + 1] - '0'; in wl_android_okc_enable()
3058 wl_android_legacy_check_command(struct net_device *dev, char *command) in wl_android_legacy_check_command() argument
3063 if (strnicmp(command, legacy_cmdlist[cnt], strlen(legacy_cmdlist[cnt])) == 0) { in wl_android_legacy_check_command()
3065 sscanf(command, "%"S(WL_PRIV_CMD_LEN)"s ", cmd); in wl_android_legacy_check_command()
3076 wl_android_legacy_private_command(struct net_device *net, char *command, int total_len) in wl_android_legacy_private_command() argument
3087 /* ROAMSCAN CHANNELS Add, Get Command */ in wl_android_legacy_private_command()
3088 if (strnicmp(command, CMD_ADDROAMSCANCHLEGACY, strlen(CMD_ADDROAMSCANCHLEGACY)) == 0) { in wl_android_legacy_private_command()
3089 bytes_written = wl_android_add_roam_scan_channels(net, command, in wl_android_legacy_private_command()
3092 else if (strnicmp(command, CMD_GETROAMSCANCHLEGACY, strlen(CMD_GETROAMSCANCHLEGACY)) == 0) { in wl_android_legacy_private_command()
3093 bytes_written = wl_android_get_roam_scan_channels(net, command, total_len, in wl_android_legacy_private_command()
3096 /* ROAMSCAN FREQUENCIES Add, Get Command */ in wl_android_legacy_private_command()
3097 else if (strnicmp(command, CMD_ADDROAMSCANFQLEGACY, strlen(CMD_ADDROAMSCANFQLEGACY)) == 0) { in wl_android_legacy_private_command()
3098 bytes_written = wl_android_add_roam_scan_freqs(net, command, in wl_android_legacy_private_command()
3101 else if (strnicmp(command, CMD_GETROAMSCANFQLEGACY, strlen(CMD_GETROAMSCANFQLEGACY)) == 0) { in wl_android_legacy_private_command()
3102 bytes_written = wl_android_get_roam_scan_freqs(net, command, total_len, in wl_android_legacy_private_command()
3105 else if (strnicmp(command, CMD_GETROAMTRIGLEGACY, strlen(CMD_GETROAMTRIGLEGACY)) == 0) { in wl_android_legacy_private_command()
3106 bytes_written = wl_android_get_roam_trigger(net, command, total_len); in wl_android_legacy_private_command()
3108 else if (strnicmp(command, CMD_SETROAMTRIGLEGACY, strlen(CMD_SETROAMTRIGLEGACY)) == 0) { in wl_android_legacy_private_command()
3109 bytes_written = wl_android_set_roam_trigger_legacy(net, command); in wl_android_legacy_private_command()
3111 else if (strnicmp(command, CMD_REASSOCLEGACY, strlen(CMD_REASSOCLEGACY)) == 0) { in wl_android_legacy_private_command()
3112 bytes_written = wl_android_reassoc(net, command, total_len); in wl_android_legacy_private_command()
3114 else if (strnicmp(command, CMD_GETSCANCHANNELTIMELEGACY, in wl_android_legacy_private_command()
3116 bytes_written = wl_android_get_scan_channel_time(net, command, total_len); in wl_android_legacy_private_command()
3118 else if (strnicmp(command, CMD_SETSCANCHANNELTIMELEGACY, in wl_android_legacy_private_command()
3120 bytes_written = wl_android_set_scan_channel_time(net, command); in wl_android_legacy_private_command()
3122 else if (strnicmp(command, CMD_GETSCANUNASSOCTIMELEGACY, in wl_android_legacy_private_command()
3124 bytes_written = wl_android_get_scan_unassoc_time(net, command, total_len); in wl_android_legacy_private_command()
3126 else if (strnicmp(command, CMD_SETSCANUNASSOCTIMELEGACY, in wl_android_legacy_private_command()
3128 bytes_written = wl_android_set_scan_unassoc_time(net, command); in wl_android_legacy_private_command()
3130 else if (strnicmp(command, CMD_GETSCANPASSIVETIMELEGACY, in wl_android_legacy_private_command()
3132 bytes_written = wl_android_get_scan_passive_time(net, command, total_len); in wl_android_legacy_private_command()
3134 else if (strnicmp(command, CMD_SETSCANPASSIVETIMELEGACY, in wl_android_legacy_private_command()
3136 bytes_written = wl_android_set_scan_passive_time(net, command); in wl_android_legacy_private_command()
3138 else if (strnicmp(command, CMD_GETSCANHOMETIMELEGACY, in wl_android_legacy_private_command()
3140 bytes_written = wl_android_get_scan_home_time(net, command, total_len); in wl_android_legacy_private_command()
3142 else if (strnicmp(command, CMD_SETSCANHOMETIMELEGACY, in wl_android_legacy_private_command()
3144 bytes_written = wl_android_set_scan_home_time(net, command); in wl_android_legacy_private_command()
3146 else if (strnicmp(command, CMD_GETSCANHOMEAWAYTIMELEGACY, in wl_android_legacy_private_command()
3148 bytes_written = wl_android_get_scan_home_away_time(net, command, total_len); in wl_android_legacy_private_command()
3150 else if (strnicmp(command, CMD_SETSCANHOMEAWAYTIMELEGACY, in wl_android_legacy_private_command()
3152 bytes_written = wl_android_set_scan_home_away_time(net, command); in wl_android_legacy_private_command()
3155 ANDROID_ERROR(("Unknown NCHO PRIVATE command %s - ignored\n", command)); in wl_android_legacy_private_command()
3156 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_android_legacy_private_command()
3163 wl_android_ncho_check_command(struct net_device *dev, char *command) in wl_android_ncho_check_command() argument
3168 if (strnicmp(command, ncho_cmdlist[cnt], strlen(ncho_cmdlist[cnt])) == 0) { in wl_android_ncho_check_command()
3170 sscanf(command, "%"S(WL_PRIV_CMD_LEN)"s ", cmd); in wl_android_ncho_check_command()
3181 wl_android_ncho_private_command(struct net_device *net, char *command, int total_len) in wl_android_ncho_private_command() argument
3193 if (strnicmp(command, CMD_ROAMTRIGGER_SET, strlen(CMD_ROAMTRIGGER_SET)) == 0) { in wl_android_ncho_private_command()
3194 bytes_written = wl_android_set_roam_trigger(net, command); in wl_android_ncho_private_command()
3195 } else if (strnicmp(command, CMD_ROAMTRIGGER_GET, strlen(CMD_ROAMTRIGGER_GET)) == 0) { in wl_android_ncho_private_command()
3196 bytes_written = wl_android_get_roam_trigger(net, command, total_len); in wl_android_ncho_private_command()
3197 } else if (strnicmp(command, CMD_ROAMDELTA_SET, strlen(CMD_ROAMDELTA_SET)) == 0) { in wl_android_ncho_private_command()
3198 bytes_written = wl_android_set_roam_delta(net, command); in wl_android_ncho_private_command()
3199 } else if (strnicmp(command, CMD_ROAMDELTA_GET, strlen(CMD_ROAMDELTA_GET)) == 0) { in wl_android_ncho_private_command()
3200 bytes_written = wl_android_get_roam_delta(net, command, total_len); in wl_android_ncho_private_command()
3201 } else if (strnicmp(command, CMD_ROAMSCANPERIOD_SET, in wl_android_ncho_private_command()
3203 bytes_written = wl_android_set_roam_scan_period(net, command); in wl_android_ncho_private_command()
3204 } else if (strnicmp(command, CMD_ROAMSCANPERIOD_GET, in wl_android_ncho_private_command()
3206 bytes_written = wl_android_get_roam_scan_period(net, command, total_len); in wl_android_ncho_private_command()
3207 } else if (strnicmp(command, CMD_FULLROAMSCANPERIOD_SET, in wl_android_ncho_private_command()
3209 bytes_written = wl_android_set_full_roam_scan_period(net, command); in wl_android_ncho_private_command()
3210 } else if (strnicmp(command, CMD_FULLROAMSCANPERIOD_GET, in wl_android_ncho_private_command()
3212 bytes_written = wl_android_get_full_roam_scan_period(net, command, total_len); in wl_android_ncho_private_command()
3213 } else if (strnicmp(command, CMD_COUNTRYREV_SET, strlen(CMD_COUNTRYREV_SET)) == 0) { in wl_android_ncho_private_command()
3214 bytes_written = wl_android_set_country_rev(net, command); in wl_android_ncho_private_command()
3222 } else if (strnicmp(command, CMD_COUNTRYREV_GET, strlen(CMD_COUNTRYREV_GET)) == 0) { in wl_android_ncho_private_command()
3223 bytes_written = wl_android_get_country_rev(net, command, total_len); in wl_android_ncho_private_command()
3226 if (strnicmp(command, CMD_GETROAMSCANCONTROL, strlen(CMD_GETROAMSCANCONTROL)) == 0) { in wl_android_ncho_private_command()
3227 bytes_written = wl_android_get_roam_scan_control(net, command, total_len); in wl_android_ncho_private_command()
3229 else if (strnicmp(command, CMD_SETROAMSCANCONTROL, strlen(CMD_SETROAMSCANCONTROL)) == 0) { in wl_android_ncho_private_command()
3230 bytes_written = wl_android_set_roam_scan_control(net, command); in wl_android_ncho_private_command()
3232 /* ROAMSCAN CHANNELS Add, Get, Set Command */ in wl_android_ncho_private_command()
3233 else if (strnicmp(command, CMD_ADDROAMSCANCHANNELS, strlen(CMD_ADDROAMSCANCHANNELS)) == 0) { in wl_android_ncho_private_command()
3234 bytes_written = wl_android_add_roam_scan_channels(net, command, in wl_android_ncho_private_command()
3237 else if (strnicmp(command, CMD_GETROAMSCANCHANNELS, strlen(CMD_GETROAMSCANCHANNELS)) == 0) { in wl_android_ncho_private_command()
3238 bytes_written = wl_android_get_roam_scan_channels(net, command, total_len, in wl_android_ncho_private_command()
3241 else if (strnicmp(command, CMD_SETROAMSCANCHANNELS, strlen(CMD_SETROAMSCANCHANNELS)) == 0) { in wl_android_ncho_private_command()
3242 bytes_written = wl_android_set_roam_scan_channels(net, command); in wl_android_ncho_private_command()
3244 /* ROAMSCAN FREQUENCIES Add, Get, Set Command */ in wl_android_ncho_private_command()
3245 else if (strnicmp(command, CMD_ADDROAMSCANFREQS, strlen(CMD_ADDROAMSCANFREQS)) == 0) { in wl_android_ncho_private_command()
3246 bytes_written = wl_android_add_roam_scan_freqs(net, command, in wl_android_ncho_private_command()
3249 else if (strnicmp(command, CMD_GETROAMSCANFREQS, strlen(CMD_GETROAMSCANFREQS)) == 0) { in wl_android_ncho_private_command()
3250 bytes_written = wl_android_get_roam_scan_freqs(net, command, total_len, in wl_android_ncho_private_command()
3253 else if (strnicmp(command, CMD_SETROAMSCANFREQS, strlen(CMD_SETROAMSCANFREQS)) == 0) { in wl_android_ncho_private_command()
3254 bytes_written = wl_android_set_roam_scan_freqs(net, command); in wl_android_ncho_private_command()
3256 else if (strnicmp(command, CMD_SENDACTIONFRAME, strlen(CMD_SENDACTIONFRAME)) == 0) { in wl_android_ncho_private_command()
3257 bytes_written = wl_android_send_action_frame(net, command, total_len); in wl_android_ncho_private_command()
3259 else if (strnicmp(command, CMD_REASSOC, strlen(CMD_REASSOC)) == 0) { in wl_android_ncho_private_command()
3260 bytes_written = wl_android_reassoc(net, command, total_len); in wl_android_ncho_private_command()
3262 else if (strnicmp(command, CMD_GETSCANCHANNELTIME, strlen(CMD_GETSCANCHANNELTIME)) == 0) { in wl_android_ncho_private_command()
3263 bytes_written = wl_android_get_scan_channel_time(net, command, total_len); in wl_android_ncho_private_command()
3265 else if (strnicmp(command, CMD_SETSCANCHANNELTIME, strlen(CMD_SETSCANCHANNELTIME)) == 0) { in wl_android_ncho_private_command()
3266 bytes_written = wl_android_set_scan_channel_time(net, command); in wl_android_ncho_private_command()
3268 else if (strnicmp(command, CMD_GETSCANUNASSOCTIME, strlen(CMD_GETSCANUNASSOCTIME)) == 0) { in wl_android_ncho_private_command()
3269 bytes_written = wl_android_get_scan_unassoc_time(net, command, total_len); in wl_android_ncho_private_command()
3271 else if (strnicmp(command, CMD_SETSCANUNASSOCTIME, strlen(CMD_SETSCANUNASSOCTIME)) == 0) { in wl_android_ncho_private_command()
3272 bytes_written = wl_android_set_scan_unassoc_time(net, command); in wl_android_ncho_private_command()
3274 else if (strnicmp(command, CMD_GETSCANPASSIVETIME, strlen(CMD_GETSCANPASSIVETIME)) == 0) { in wl_android_ncho_private_command()
3275 bytes_written = wl_android_get_scan_passive_time(net, command, total_len); in wl_android_ncho_private_command()
3277 else if (strnicmp(command, CMD_SETSCANPASSIVETIME, strlen(CMD_SETSCANPASSIVETIME)) == 0) { in wl_android_ncho_private_command()
3278 bytes_written = wl_android_set_scan_passive_time(net, command); in wl_android_ncho_private_command()
3280 else if (strnicmp(command, CMD_GETSCANHOMETIME, strlen(CMD_GETSCANHOMETIME)) == 0) { in wl_android_ncho_private_command()
3281 bytes_written = wl_android_get_scan_home_time(net, command, total_len); in wl_android_ncho_private_command()
3283 else if (strnicmp(command, CMD_SETSCANHOMETIME, strlen(CMD_SETSCANHOMETIME)) == 0) { in wl_android_ncho_private_command()
3284 bytes_written = wl_android_set_scan_home_time(net, command); in wl_android_ncho_private_command()
3286 else if (strnicmp(command, CMD_GETSCANHOMEAWAYTIME, strlen(CMD_GETSCANHOMEAWAYTIME)) == 0) { in wl_android_ncho_private_command()
3287 bytes_written = wl_android_get_scan_home_away_time(net, command, total_len); in wl_android_ncho_private_command()
3289 else if (strnicmp(command, CMD_SETSCANHOMEAWAYTIME, strlen(CMD_SETSCANHOMEAWAYTIME)) == 0) { in wl_android_ncho_private_command()
3290 bytes_written = wl_android_set_scan_home_away_time(net, command); in wl_android_ncho_private_command()
3292 else if (strnicmp(command, CMD_GETSCANNPROBES, strlen(CMD_GETSCANNPROBES)) == 0) { in wl_android_ncho_private_command()
3293 bytes_written = wl_android_get_scan_nprobes(net, command, total_len); in wl_android_ncho_private_command()
3295 else if (strnicmp(command, CMD_SETSCANNPROBES, strlen(CMD_SETSCANNPROBES)) == 0) { in wl_android_ncho_private_command()
3296 bytes_written = wl_android_set_scan_nprobes(net, command); in wl_android_ncho_private_command()
3298 else if (strnicmp(command, CMD_GETDFSSCANMODE, strlen(CMD_GETDFSSCANMODE)) == 0) { in wl_android_ncho_private_command()
3299 bytes_written = wl_android_get_scan_dfs_channel_mode(net, command, total_len); in wl_android_ncho_private_command()
3301 else if (strnicmp(command, CMD_SETDFSSCANMODE, strlen(CMD_SETDFSSCANMODE)) == 0) { in wl_android_ncho_private_command()
3302 bytes_written = wl_android_set_scan_dfs_channel_mode(net, command); in wl_android_ncho_private_command()
3304 else if (strnicmp(command, CMD_SETJOINPREFER, strlen(CMD_SETJOINPREFER)) == 0) { in wl_android_ncho_private_command()
3305 bytes_written = wl_android_set_join_prefer(net, command); in wl_android_ncho_private_command()
3307 else if (strnicmp(command, CMD_GETWESMODE, strlen(CMD_GETWESMODE)) == 0) { in wl_android_ncho_private_command()
3308 bytes_written = wl_android_get_wes_mode(net, command, total_len); in wl_android_ncho_private_command()
3310 else if (strnicmp(command, CMD_SETWESMODE, strlen(CMD_SETWESMODE)) == 0) { in wl_android_ncho_private_command()
3311 bytes_written = wl_android_set_wes_mode(net, command); in wl_android_ncho_private_command()
3314 ANDROID_ERROR(("Unknown NCHO PRIVATE command %s - ignored\n", command)); in wl_android_ncho_private_command()
3315 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_android_ncho_private_command()
3324 wl_android_default_set_scan_params(struct net_device *dev, char *command, int total_len) in wl_android_default_set_scan_params() argument
3331 while (strlen(restore_params[cnt].command) > 0 && restore_params[cnt].cmd_handler) { in wl_android_default_set_scan_params()
3333 restore_params[cnt].command, restore_params[cnt].parameter); in wl_android_default_set_scan_params()
3340 ANDROID_ERROR(("Unknown restore command handler\n")); in wl_android_default_set_scan_params()
3454 char *command, int total_len) in wl_android_sroam_set_info() argument
3528 wl_android_sroam_get_info(struct net_device *dev, char *command, int total_len) in wl_android_sroam_get_info() argument
3558 bytes_written = snprintf(command, total_len, in wl_android_sroam_get_info()
3565 ANDROID_INFO(("%s", command)); in wl_android_sroam_get_info()
3625 wl_android_roam_rssi_limit(struct net_device *dev, char *command, int total_len) in wl_android_roam_rssi_limit() argument
3632 argc = sscanf(command, CMD_ROAM_RSSI_LMT " %d %d\n", &lmt2g, &lmt5g); in wl_android_roam_rssi_limit()
3640 bytes_written = snprintf(command, total_len, "%d, %d\n", lmt2g, lmt5g); in wl_android_roam_rssi_limit()
3658 wl_android_roam_min_delta(struct net_device *dev, char *command, int total_len) in wl_android_roam_min_delta() argument
3665 argc = sscanf(command, CMD_ROAM_MIN_DELTA " %d\n", &delta); in wl_android_roam_min_delta()
3674 bytes_written = snprintf(command, total_len, "%d, %d\n", delta2g, delta5g); in wl_android_roam_min_delta()
3726 wl_android_set_disconnect_ies(struct net_device *dev, char *command) in wl_android_set_disconnect_ies() argument
3741 cmd_len = strlen(command); in wl_android_set_disconnect_ies()
3749 ANDROID_INFO(("cmd recv = %s\n", command)); in wl_android_set_disconnect_ies()
3752 get_int_bytes(&command[cmd_prefix_len + 2], &ie_len, 1); in wl_android_set_disconnect_ies()
3762 if (command[total_len] != '\0' || (cmd_len != total_len)) { in wl_android_set_disconnect_ies()
3763 ANDROID_ERROR(("command recv not matching with len, command = %s" in wl_android_set_disconnect_ies()
3764 "total_len = %d, cmd_len = %d\n", command, total_len, cmd_len)); in wl_android_set_disconnect_ies()
3778 get_int_bytes(&command[cmd_prefix_len], disassoc_ie, ie_len); in wl_android_set_disconnect_ies()
3793 wl_android_set_fcc_pwr_limit_2g(struct net_device *dev, char *command) in wl_android_set_fcc_pwr_limit_2g() argument
3798 sscanf(command+sizeof("SET_FCC_CHANNEL"), "%d", &enable); in wl_android_set_fcc_pwr_limit_2g()
3819 wl_android_get_fcc_pwr_limit_2g(struct net_device *dev, char *command, int total_len) in wl_android_get_fcc_pwr_limit_2g() argument
3833 bytes_written = snprintf(command, total_len, "%s %d", CMD_GET_FCC_PWR_LIMIT_2G, enable); in wl_android_get_fcc_pwr_limit_2g()
3856 wl_cfg80211_get_sta_info(struct net_device *dev, char* command, int total_len) in wl_cfg80211_get_sta_info() argument
3893 /* This Command used during only SoftAP mode. */ in wl_cfg80211_get_sta_info()
3894 ANDROID_INFO(("%s\n", command)); in wl_cfg80211_get_sta_info()
3905 pos = command; in wl_cfg80211_get_sta_info()
3907 /* drop command */ in wl_cfg80211_get_sta_info()
4063 bytes_written = snprintf(command, total_len, in wl_cfg80211_get_sta_info()
4079 bytes_written = snprintf(command, total_len, in wl_cfg80211_get_sta_info()
4092 bytes_written = snprintf(command, total_len, in wl_cfg80211_get_sta_info()
4102 WL_ERR_KERN(("Command: %s", command)); in wl_cfg80211_get_sta_info()
4133 wl_android_wtc_config(struct net_device *dev, char *command, int total_len) in wl_android_wtc_config() argument
4143 WL_DBG_MEM(("Enter. cmd:%s\n", command)); in wl_android_wtc_config()
4178 if (strlen(command) == strlen(CMD_WTC_CONFIG)) { in wl_android_wtc_config()
4180 bw += scnprintf(command, (total_len - bw), "%u %u", in wl_android_wtc_config()
4182 bw += scnprintf(command + bw, (total_len - bw), " %d", in wl_android_wtc_config()
4185 bw += scnprintf(command + bw, (total_len - bw), " %d", in wl_android_wtc_config()
4188 bw += scnprintf(command + bw, (total_len - bw), "\n"); in wl_android_wtc_config()
4191 pos = command + sizeof(CMD_WTC_CONFIG); in wl_android_wtc_config()
4250 static int wl_android_wbtext(struct net_device *dev, char *command, int total_len) in wl_android_wbtext() argument
4257 argc = sscanf(command+sizeof(CMD_WBTEXT_ENABLE), "%d", &data); in wl_android_wbtext()
4265 bytes_written = snprintf(command, total_len, "WBTEXT %s\n", in wl_android_wbtext()
4329 char *command, int total_len) in wl_cfg80211_wbtext_btm_timer_threshold() argument
4334 argc = sscanf(command, CMD_WBTEXT_BTM_TIMER_THRESHOLD " %d\n", &data); in wl_cfg80211_wbtext_btm_timer_threshold()
4341 bytes_written = snprintf(command, total_len, "%d\n", data); in wl_cfg80211_wbtext_btm_timer_threshold()
4354 char *command, int total_len) in wl_cfg80211_wbtext_btm_delta() argument
4359 argc = sscanf(command, CMD_WBTEXT_BTM_DELTA " %d\n", &data); in wl_cfg80211_wbtext_btm_delta()
4366 bytes_written = snprintf(command, total_len, "%d\n", data); in wl_cfg80211_wbtext_btm_delta()
4379 char *command, int total_len) in wl_cfg80211_wbtext_estm_enable() argument
4384 char *pcmd = command; in wl_cfg80211_wbtext_estm_enable()
4395 bytes_written = snprintf(command, total_len, "wbtext_estm_enable %d\n", in wl_cfg80211_wbtext_estm_enable()
4420 wls_parse_batching_cmd(struct net_device *dev, char *command, int total_len) in wls_parse_batching_cmd() argument
4428 ANDROID_INFO(("wls_parse_batching_cmd: command=%s, len=%d\n", command, total_len)); in wls_parse_batching_cmd()
4431 pos = command + strlen(CMD_WLS_BATCHING) + 1; in wls_parse_batching_cmd()
4519 bzero(command, total_len); in wls_parse_batching_cmd()
4520 err = snprintf(command, total_len, "%d", err); in wls_parse_batching_cmd()
4523 err = dhd_dev_pno_get_for_batch(dev, command, total_len); in wls_parse_batching_cmd()
4527 err = strlen(command); in wls_parse_batching_cmd()
4534 bzero(command, total_len); in wls_parse_batching_cmd()
4535 err = snprintf(command, total_len, "OK"); in wls_parse_batching_cmd()
4538 ANDROID_ERROR(("wls_parse_batching_cmd : unknown command\n")); in wls_parse_batching_cmd()
4547 static int wl_android_set_pno_setup(struct net_device *dev, char *command, int total_len) in wl_android_set_pno_setup() argument
4579 ANDROID_INFO(("wl_android_set_pno_setup: command=%s, len=%d\n", command, total_len)); in wl_android_set_pno_setup()
4586 memcpy(command, pno_in_example, sizeof(pno_in_example)); in wl_android_set_pno_setup()
4589 str_ptr = command + strlen(CMD_PNOSETUP_SET); in wl_android_set_pno_setup()
4639 ANDROID_ERROR(("wl_android_set_pno_setup: get wrong TLV command\n")); in wl_android_set_pno_setup()
4651 static int wl_android_get_p2p_dev_addr(struct net_device *ndev, char *command, int total_len) in wl_android_get_p2p_dev_addr() argument
4668 return (snprintf(command, total_len, MACF, ETHERP_TO_MACF(&p2pdev_addr))); in wl_android_get_p2p_dev_addr()
4824 static int wl_android_get_factory_mac_addr(struct net_device *ndev, char *command, int total_len) in wl_android_get_factory_mac_addr() argument
4834 ret = snprintf(command, total_len, MACDBG, in wl_android_get_factory_mac_addr()
5025 static int wl_android_set_fwpath(struct net_device *net, char *command, int total_len) in wl_android_set_fwpath() argument
5027 if ((strlen(command) - strlen(CMD_SETFWPATH)) > MOD_PARAM_PATHLEN) in wl_android_set_fwpath()
5029 return dhd_net_set_fw_path(net, command + strlen(CMD_SETFWPATH) + 1); in wl_android_set_fwpath()
5088 wl_android_get_connection_stats(struct net_device *dev, char *command, int total_len) in wl_android_get_connection_stats() argument
5122 output = (struct connection_stats *)command; in wl_android_get_connection_stats()
5242 wl_android_process_natoe_cmd(struct net_device *dev, char *command, int total_len) in wl_android_process_natoe_cmd() argument
5245 char *pcmd = command; in wl_android_process_natoe_cmd()
5260 /* get the natoe command name to str */ in wl_android_process_natoe_cmd()
5267 cmd_info.command = command; in wl_android_process_natoe_cmd()
5283 uint8 *command = cmd_info->command; in wlu_natoe_set_vars_cbfn() local
5293 bytes_written = snprintf(command, total_len, "natoe: %s\n", in wlu_natoe_set_vars_cbfn()
5306 bytes_written = snprintf(command, total_len, "sta ip: %s\n", buf); in wlu_natoe_set_vars_cbfn()
5308 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
5311 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
5314 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
5317 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
5320 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
5331 bytes_written = snprintf(command, total_len, "starting port num: %d\n", in wlu_natoe_set_vars_cbfn()
5333 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
5343 bytes_written = snprintf(command, total_len, "%s\n", stats_dump); in wlu_natoe_set_vars_cbfn()
5350 bytes_written = snprintf(command, total_len, "natoe max tbl entries: %d\n", in wlu_natoe_set_vars_cbfn()
5391 ANDROID_ERROR(("wl_natoe_get_ioctl: get command failed code %d\n", res)); in wl_natoe_get_ioctl()
5400 char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_enable() argument
5404 char *pcmd = command; in wl_android_natoe_subcmd_enable()
5476 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_config_ips() argument
5481 char *pcmd = command; in wl_android_natoe_subcmd_config_ips()
5596 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_config_ports() argument
5601 char *pcmd = command; in wl_android_natoe_subcmd_config_ports()
5696 char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_dbg_stats() argument
5700 char *pcmd = command; in wl_android_natoe_subcmd_dbg_stats()
5773 char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_tbl_cnt() argument
5777 char *pcmd = command; in wl_android_natoe_subcmd_tbl_cnt()
5852 wl_android_process_mbo_cmd(struct net_device *dev, char *command, int total_len) in wl_android_process_mbo_cmd() argument
5855 char *pcmd = command; in wl_android_process_mbo_cmd()
5870 /* get the mbo command name to str */ in wl_android_process_mbo_cmd()
5877 cmd_info.command = command; in wl_android_process_mbo_cmd()
5921 uint8 *command = cmd_info->command; in wl_android_mbo_resp_parse_cbfn() local
5934 bytes_written = snprintf(command, total_len, "cell_data_cap: %u\n", *data); in wl_android_mbo_resp_parse_cbfn()
5946 char *command, wl_drv_cmd_info_t *cmd_info) in wl_android_mbo_subcmd_cell_data_cap() argument
5952 char *pcmd = command; in wl_android_mbo_subcmd_cell_data_cap()
6070 uint8 *command = cmd_info->command + cmd_info->bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn() local
6083 bytes_written = snprintf(command, total_len, "%u:", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
6085 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
6091 bytes_written = snprintf(command, total_len, "%u:", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
6093 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
6099 bytes_written = snprintf(command, total_len, "%u:", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
6101 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
6107 bytes_written = snprintf(command, total_len, "%u ", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
6109 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
6122 const wl_drv_sub_cmd_t *cmd, char *command, in wl_android_mbo_subcmd_non_pref_chan() argument
6129 char *pcmd = command; in wl_android_mbo_subcmd_non_pref_chan()
6199 ANDROID_ERROR(("Unknown command %s\n", str)); in wl_android_mbo_subcmd_non_pref_chan()
6563 * command came. in wl_android_get_best_channels()
6726 char* command, int total_len) in wl_android_set_auto_channel() argument
6742 ANDROID_INFO(("Command: %s len:%d \n", cmd_str, (int)strlen(cmd_str))); in wl_android_set_auto_channel()
6972 ret = snprintf(command, total_len, "%d", channel); in wl_android_set_auto_channel()
6973 ANDROID_INFO(("command result is %s \n", command)); in wl_android_set_auto_channel()
7355 static int wl_android_set_rmc_event(struct net_device *dev, char *command) in wl_android_set_rmc_event() argument
7360 if (sscanf(command, CMD_SET_RMC_EVENT " %d", &pid) <= 0) { in wl_android_set_rmc_event()
7361 ANDROID_ERROR(("Failed to get Parameter from : %s\n", command)); in wl_android_set_rmc_event()
7374 int wl_android_get_singlecore_scan(struct net_device *dev, char *command, int total_len) in wl_android_get_singlecore_scan() argument
7388 bytes_written = snprintf(command, total_len, "%s %d", CMD_GET_SCSCAN, mode); in wl_android_get_singlecore_scan()
7393 int wl_android_set_singlecore_scan(struct net_device *dev, char *command) in wl_android_set_singlecore_scan() argument
7398 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_singlecore_scan()
7442 wl_android_get_tx_power(struct net_device *dev, char *command, int total_len) in wl_android_get_tx_power() argument
7454 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_tx_power()
7526 wl_android_set_tid(struct net_device *dev, char* command) in wl_android_set_tid() argument
7529 char *pos = command; in wl_android_set_tid()
7541 ANDROID_INFO(("%s: command[%s]\n", __FUNCTION__, command)); in wl_android_set_tid()
7543 /* drop command */ in wl_android_set_tid()
7597 wl_android_get_tid(struct net_device *dev, char* command, int total_len) in wl_android_get_tid() argument
7607 bytes_written = snprintf(command, total_len, "mode %d uid %d tid %d", in wl_android_get_tid()
7610 ANDROID_INFO(("%s: command results %s\n", __FUNCTION__, command)); in wl_android_get_tid()
7617 int wl_android_set_roam_mode(struct net_device *dev, char *command) in wl_android_set_roam_mode() argument
7622 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_roam_mode()
7640 int wl_android_set_ibss_beacon_ouidata(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_beacon_ouidata() argument
7665 pcmd = command + strlen(CMD_SETIBSSBEACONOUIDATA) + 1; in wl_android_set_ibss_beacon_ouidata()
7694 /* Copy the vndr_ie SET command ("add"/"del") to the buffer */ in wl_android_set_ibss_beacon_ouidata()
7754 wl_android_set_roampref(struct net_device *dev, char *command, int total_len) in wl_android_set_roampref() argument
7771 pcmd = command + strlen(CMD_SET_ROAMPREF) + 1; in wl_android_set_roampref()
7792 /* Save the AKM suites passed in the command */ in wl_android_set_roampref()
7812 /* Save the cipher suites passed in the command */ in wl_android_set_roampref()
7977 wl_android_set_miracast(struct net_device *dev, char *command) in wl_android_set_miracast() argument
7983 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_miracast()
8212 static int wl_android_set_ibss_txfail_event(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_txfail_event() argument
8220 if (sscanf(command, CMD_SETIBSSTXFAILEVENT " %d %d", &retry, &pid) <= 0) { in wl_android_set_ibss_txfail_event()
8221 ANDROID_ERROR(("Failed to get Parameter from : %s\n", command)); in wl_android_set_ibss_txfail_event()
8248 static int wl_android_get_ibss_peer_info(struct net_device *dev, char *command, in wl_android_get_ibss_peer_info() argument
8259 char *str = command; in wl_android_get_ibss_peer_info()
8266 ANDROID_ERROR(("invalid command\n")); in wl_android_get_ibss_peer_info()
8298 bytes_written += snprintf(&command[bytes_written], total_len, "%u ", in wl_android_get_ibss_peer_info()
8314 bytes_written += snprintf(&command[bytes_written], in wl_android_get_ibss_peer_info()
8336 ANDROID_INFO(("command(%u):%s\n", total_len, command)); in wl_android_get_ibss_peer_info()
8343 int wl_android_set_ibss_routetable(struct net_device *dev, char *command) in wl_android_set_ibss_routetable() argument
8346 char *pcmd = command; in wl_android_set_ibss_routetable()
8376 /* drop command */ in wl_android_set_ibss_routetable()
8441 wl_android_set_ibss_ampdu(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_ampdu() argument
8443 char *pcmd = command; in wl_android_set_ibss_ampdu()
8455 ANDROID_INFO(("set ibss ampdu:%s\n", command)); in wl_android_set_ibss_ampdu()
8462 /* drop command */ in wl_android_set_ibss_ampdu()
8489 int wl_android_set_ibss_antenna(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_antenna() argument
8491 char *pcmd = command; in wl_android_set_ibss_antenna()
8496 ANDROID_INFO(("set ibss antenna:%s\n", command)); in wl_android_set_ibss_antenna()
8499 /* drop command */ in wl_android_set_ibss_antenna()
8570 static int wl_android_get_wfdie_resp(struct net_device *dev, char *command, int total_len) in wl_android_get_wfdie_resp() argument
8583 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_wfdie_resp()
8624 static int wl_android_get_link_status(struct net_device *dev, char *command, in wl_android_get_link_status() argument
8754 bytes_written = snprintf(command, total_len, "%s %d", CMD_GET_LINK_STATUS, result); in wl_android_get_link_status()
8979 wl_android_get_rssi_per_ant(struct net_device *dev, char *command, int total_len) in wl_android_get_rssi_per_ant() argument
8995 pos = command; in wl_android_get_rssi_per_ant()
8997 /* drop command */ in wl_android_get_rssi_per_ant()
9036 bytes_written = snprintf(command, total_len, "%s MIMO %d", in wl_android_get_rssi_per_ant()
9040 bytes_written = snprintf(command, total_len, "%s PER_ANT ", CMD_GET_RSSI_PER_ANT); in wl_android_get_rssi_per_ant()
9043 bytes_written = snprintf(command, total_len, "%d ", in wl_android_get_rssi_per_ant()
9052 wl_android_set_rssi_logging(struct net_device *dev, char *command, int total_len) in wl_android_set_rssi_logging() argument
9062 pos = command; in wl_android_set_rssi_logging()
9064 /* drop command */ in wl_android_set_rssi_logging()
9105 wl_android_get_rssi_logging(struct net_device *dev, char *command, int total_len) in wl_android_get_rssi_logging() argument
9124 bytes_written = snprintf(command, total_len, in wl_android_get_rssi_logging()
9131 bytes_written = snprintf(command, total_len, "%s PASS\n", in wl_android_get_rssi_logging()
9141 bytes_written = snprintf(command, total_len, "%s FAIL - RSSI Threshold " in wl_android_get_rssi_logging()
9148 bytes_written = snprintf(command, total_len, "%s BUSY - NOT READY\n", in wl_android_get_rssi_logging()
9185 wl_android_get_lqcm_report(struct net_device *dev, char *command, int total_len) in wl_android_get_lqcm_report() argument
9202 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_lqcm_report()
9210 wl_android_get_snr(struct net_device *dev, char *command, int total_len) in wl_android_get_snr() argument
9222 bytes_written = snprintf(command, total_len, "snr %d", snr); in wl_android_get_snr()
9223 ANDROID_INFO(("%s: command result is %s\n", __FUNCTION__, command)); in wl_android_get_snr()
9229 wl_android_set_ap_beaconrate(struct net_device *dev, char *command) in wl_android_set_ap_beaconrate() argument
9239 pos = command; in wl_android_set_ap_beaconrate()
9241 /* drop command */ in wl_android_set_ap_beaconrate()
9266 int wl_android_get_ap_basicrate(struct net_device *dev, char *command, int total_len) in wl_android_get_ap_basicrate() argument
9274 pos = command; in wl_android_get_ap_basicrate()
9276 /* drop command */ in wl_android_get_ap_basicrate()
9287 bytes_written = wl_get_ap_basic_rate(dev, command, ifname, total_len); in wl_android_get_ap_basicrate()
9299 wl_android_get_ap_rps(struct net_device *dev, char *command, int total_len) in wl_android_get_ap_rps() argument
9308 pos = command; in wl_android_get_ap_rps()
9310 /* drop command */ in wl_android_get_ap_rps()
9322 bytes_written = wl_get_ap_rps(dev, command, name, total_len); in wl_android_get_ap_rps()
9333 wl_android_set_ap_rps(struct net_device *dev, char *command, int total_len) in wl_android_set_ap_rps() argument
9344 pos = command; in wl_android_set_ap_rps()
9346 /* drop command */ in wl_android_set_ap_rps()
9373 wl_android_set_ap_rps_params(struct net_device *dev, char *command, int total_len) in wl_android_set_ap_rps_params() argument
9385 pos = command; in wl_android_set_ap_rps_params()
9387 /* drop command */ in wl_android_set_ap_rps_params()
9496 wl_android_pktlog_filter_enable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_enable() argument
9516 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_enable()
9527 wl_android_pktlog_filter_disable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_disable() argument
9547 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_disable()
9558 wl_android_pktlog_filter_pattern_enable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_pattern_enable() argument
9578 command + strlen(CMD_PKTLOG_FILTER_PATTERN_ENABLE) + 1, TRUE); in wl_android_pktlog_filter_pattern_enable()
9581 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_pattern_enable()
9592 wl_android_pktlog_filter_pattern_disable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_pattern_disable() argument
9612 command + strlen(CMD_PKTLOG_FILTER_PATTERN_DISABLE) + 1, FALSE); in wl_android_pktlog_filter_pattern_disable()
9615 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_pattern_disable()
9626 wl_android_pktlog_filter_add(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_add() argument
9645 err = dhd_pktlog_filter_add(filter, command + strlen(CMD_PKTLOG_FILTER_ADD) + 1); in wl_android_pktlog_filter_add()
9648 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_add()
9659 wl_android_pktlog_filter_del(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_del() argument
9680 err = dhd_pktlog_filter_del(filter, command + strlen(CMD_PKTLOG_FILTER_DEL) + 1); in wl_android_pktlog_filter_del()
9682 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_del()
9693 wl_android_pktlog_filter_info(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_info() argument
9711 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_info()
9722 wl_android_pktlog_start(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_start() argument
9741 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_start()
9749 wl_android_pktlog_stop(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_stop() argument
9768 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_stop()
9776 wl_android_pktlog_filter_exist(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_exist() argument
9796 exist = dhd_pktlog_filter_existed(filter, command + strlen(CMD_PKTLOG_FILTER_EXIST) + 1, in wl_android_pktlog_filter_exist()
9800 bytes_written = snprintf(command, total_len, "TRUE"); in wl_android_pktlog_filter_exist()
9803 bytes_written = snprintf(command, total_len, "FALSE"); in wl_android_pktlog_filter_exist()
9811 wl_android_pktlog_minmize_enable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_minmize_enable() argument
9830 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_minmize_enable()
9838 wl_android_pktlog_minmize_disable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_minmize_disable() argument
9857 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_minmize_disable()
9865 wl_android_pktlog_change_size(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_change_size() argument
9882 size = bcm_strtoul(command + strlen(CMD_PKTLOG_CHANGE_SIZE) + 1, NULL, 0); in wl_android_pktlog_change_size()
9891 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_change_size()
9902 wl_android_pktlog_dbg_dump(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_dbg_dump() argument
9920 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_dbg_dump()
9933 struct net_device *dev, char* command, int total_len) in wl_android_set_powersave_mode() argument
9941 sscanf(command, "%*s %10d", &pm); in wl_android_set_powersave_mode()
9966 struct net_device *dev, char *command, int total_len) in wl_android_get_powersave_mode() argument
9977 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_powersave_mode()
9993 wl_android_ewp_filter(struct net_device *dev, char *command, uint32 tot_len) in wl_android_ewp_filter() argument
9999 unsigned char *index_str = (unsigned char *)(command + in wl_android_ewp_filter()
10005 if (!dhdp || !command) { in wl_android_ewp_filter()
10016 if (strlen(command) > strlen(CMD_EWP_FILTER) + 1) { in wl_android_ewp_filter()
10022 &command[bytes_written], tot_len - bytes_written, index1, index2, index3); in wl_android_ewp_filter()
10028 &command[bytes_written], tot_len - bytes_written, type); in wl_android_ewp_filter()
10037 wl_android_set_ap_suspend(struct net_device *dev, char *command, int total_len) in wl_android_set_ap_suspend() argument
10048 pos = command; in wl_android_set_ap_suspend()
10050 /* drop command */ in wl_android_set_ap_suspend()
10081 wl_android_set_ap_bw(struct net_device *dev, char *command, int total_len) in wl_android_set_ap_bw() argument
10095 pos = command; in wl_android_set_ap_bw()
10097 /* drop command */ in wl_android_set_ap_bw()
10126 wl_android_get_ap_bw(struct net_device *dev, char *command, int total_len) in wl_android_get_ap_bw() argument
10139 pos = command; in wl_android_get_ap_bw()
10141 /* drop command */ in wl_android_get_ap_bw()
10154 bytes_written = wl_get_ap_bw(dev, command, name, total_len); in wl_android_get_ap_bw()
10170 while (strlen(loging_params[cnt].command) > 0) { in wl_android_priv_cmd_log_enable_check()
10171 if (!strnicmp(cmd, loging_params[cnt].command, in wl_android_priv_cmd_log_enable_check()
10172 strlen(loging_params[cnt].command))) { in wl_android_priv_cmd_log_enable_check()
10187 char *command = NULL; in wl_android_priv_cmd() local
10238 command = (char *)MALLOC(dhd->osh, (buf_size + 1)); in wl_android_priv_cmd()
10239 if (!command) { in wl_android_priv_cmd()
10244 if (copy_from_user(command, priv_cmd.buf, priv_cmd.total_len)) { in wl_android_priv_cmd()
10248 command[priv_cmd.total_len] = '\0'; in wl_android_priv_cmd()
10250 if (wl_android_priv_cmd_log_enable_check(command)) { in wl_android_priv_cmd()
10252 command, ifr->ifr_name)); in wl_android_priv_cmd()
10255 ANDROID_INFO(("%s: Android private cmd \"%s\" on %s\n", __FUNCTION__, command, ifr->ifr_name)); in wl_android_priv_cmd()
10259 bytes_written = wl_handle_private_cmd(net, command, priv_cmd.total_len); in wl_android_priv_cmd()
10262 command[0] = '\0'; in wl_android_priv_cmd()
10273 if (copy_to_user(priv_cmd.buf, command, bytes_written)) { in wl_android_priv_cmd()
10292 ((strnicmp(command, CMD_TWT_SETUP, strlen(CMD_TWT_SETUP)) == 0) || in wl_android_priv_cmd()
10293 (strnicmp(command, CMD_TWT_TEARDOWN, strlen(CMD_TWT_TEARDOWN)) == 0) || in wl_android_priv_cmd()
10294 (strnicmp(command, CMD_TWT_INFO, strlen(CMD_TWT_INFO)) == 0))) || in wl_android_priv_cmd()
10304 MFREE(dhd->osh, command, (buf_size + 1)); in wl_android_priv_cmd()
10337 struct net_device *dev, char *command, int total_len) in wl_android_get_adps_mode() argument
10377 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_adps_mode()
10385 struct net_device *dev, char *command, int total_len) in wl_android_get_gain_adps() argument
10399 bytes_written = snprintf(command, total_len, "%s %d uAm", in wl_android_get_gain_adps()
10407 struct net_device *dev, char *command) in wl_android_reset_gain_adps() argument
10534 * command error in _wl_android_bcnrecv_start()
10666 ANDROID_ERROR(("Failed to process the start command, error:%d\n", err)); in wl_android_bcnrecv_config()
10717 wl_android_get_latency_crt_data(struct net_device *dev, char *command, int total_len) in wl_android_get_latency_crt_data() argument
10729 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_latency_crt_data()
10856 wl_android_get_channel_util(struct net_device *ndev, char *command, int total_len) in wl_android_get_channel_util() argument
10873 bytes_written = snprintf(command, total_len, "CU %hhu", in wl_android_get_channel_util()
10884 wl_android_set_rtt_geofence_interval(struct net_device *ndev, char *command) in wl_android_set_rtt_geofence_interval() argument
10888 char *rtt_intp = command + strlen(CMD_GEOFENCE_INTERVAL) + 1; in wl_android_set_rtt_geofence_interval()
10898 wl_android_set_softap_elna_bypass(struct net_device *dev, char *command, int total_len) in wl_android_set_softap_elna_bypass() argument
10911 pos = command; in wl_android_set_softap_elna_bypass()
10913 /* drop command */ in wl_android_set_softap_elna_bypass()
10944 wl_android_get_softap_elna_bypass(struct net_device *dev, char *command, int total_len) in wl_android_get_softap_elna_bypass() argument
10955 pos = command; in wl_android_get_softap_elna_bypass()
10957 /* drop command */ in wl_android_get_softap_elna_bypass()
10977 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_softap_elna_bypass()
10987 wl_android_get_nan_status(struct net_device *dev, char *command, int total_len) in wl_android_get_nan_status() argument
10999 bytes_written = snprintf(command, total_len, in wl_android_get_nan_status()
11029 wl_nan_ranging_bw(struct net_device *net, int bw, char *command) in wl_nan_ranging_bw() argument
11041 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_nan_ranging_bw()
11066 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_nan_ranging_bw()
11073 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_nan_ranging_bw()
11076 bytes_written = scnprintf(command, sizeof("OK"), "OK"); in wl_nan_ranging_bw()
11082 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_nan_ranging_bw()
11191 wl_android_twt_setup(struct net_device *ndev, char *command, int total_len) in wl_android_twt_setup() argument
11202 WL_DBG_MEM(("Enter. cmd:%s\n", command)); in wl_android_twt_setup()
11204 if (strlen(command) == strlen(CMD_TWT_SETUP)) { in wl_android_twt_setup()
11219 pos = command + sizeof(CMD_TWT_SETUP); in wl_android_twt_setup()
11231 ANDROID_ERROR(("Unrecognized TWT Setup command '%s'\n", token)); in wl_android_twt_setup()
11352 wl_android_twt_display_cap(wl_twt_cap_t *result, char *command, int total_len) in wl_android_twt_display_cap() argument
11357 bytes_written = scnprintf(command, rem_len, "Device TWT Capabilities:\n"); in wl_android_twt_display_cap()
11358 command += bytes_written; in wl_android_twt_display_cap()
11361 bytes_written = scnprintf(command, rem_len, "Requester Support %d, \t", in wl_android_twt_display_cap()
11363 command += bytes_written; in wl_android_twt_display_cap()
11366 bytes_written = scnprintf(command, rem_len, "Responder Support %d, \t", in wl_android_twt_display_cap()
11368 command += bytes_written; in wl_android_twt_display_cap()
11371 bytes_written = scnprintf(command, rem_len, "Broadcast TWT Support %d, \t", in wl_android_twt_display_cap()
11373 command += bytes_written; in wl_android_twt_display_cap()
11376 bytes_written = scnprintf(command, rem_len, "Flexible TWT Support %d, \t", in wl_android_twt_display_cap()
11378 command += bytes_written; in wl_android_twt_display_cap()
11381 bytes_written = scnprintf(command, rem_len, "TWT Required by peer %d, \n", in wl_android_twt_display_cap()
11383 command += bytes_written; in wl_android_twt_display_cap()
11387 bytes_written = scnprintf(command, rem_len, "\nPeer TWT Capabilities:\n"); in wl_android_twt_display_cap()
11388 command += bytes_written; in wl_android_twt_display_cap()
11391 bytes_written = scnprintf(command, rem_len, "Requester Support %d, \t", in wl_android_twt_display_cap()
11393 command += bytes_written; in wl_android_twt_display_cap()
11396 bytes_written = scnprintf(command, rem_len, "Responder Support %d, \t", in wl_android_twt_display_cap()
11398 command += bytes_written; in wl_android_twt_display_cap()
11401 bytes_written = scnprintf(command, rem_len, "Broadcast TWT Support %d, \t", in wl_android_twt_display_cap()
11403 command += bytes_written; in wl_android_twt_display_cap()
11406 bytes_written = scnprintf(command, rem_len, "Flexible TWT Support %d, \t", in wl_android_twt_display_cap()
11408 command += bytes_written; in wl_android_twt_display_cap()
11411 bytes_written = scnprintf(command, rem_len, "TWT Required by peer %d, \n", in wl_android_twt_display_cap()
11413 command += bytes_written; in wl_android_twt_display_cap()
11416 bytes_written = scnprintf(command, rem_len, "\t------------" in wl_android_twt_display_cap()
11418 command += bytes_written; in wl_android_twt_display_cap()
11453 wl_android_twt_cap(struct net_device *dev, char *command, int total_len) in wl_android_twt_cap() argument
11499 ret = wl_android_twt_display_cap(&result, command, total_len); in wl_android_twt_cap()
11516 wl_android_twt_status_display_v1(wl_twt_status_v1_t *status, char *command, int total_len) in wl_android_twt_status_display_v1() argument
11525 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11527 command += bytes_written; in wl_android_twt_status_display_v1()
11529 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11531 command += bytes_written; in wl_android_twt_status_display_v1()
11533 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11538 command += bytes_written; in wl_android_twt_status_display_v1()
11546 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11548 command += bytes_written; in wl_android_twt_status_display_v1()
11555 bytes_written = scnprintf(command, rem_len, "\tFlow ID %d \tState %d\t", in wl_android_twt_status_display_v1()
11558 command += bytes_written; in wl_android_twt_status_display_v1()
11561 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11564 command += bytes_written; in wl_android_twt_status_display_v1()
11567 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11574 command += bytes_written; in wl_android_twt_status_display_v1()
11577 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11580 command += bytes_written; in wl_android_twt_status_display_v1()
11583 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11585 command += bytes_written; in wl_android_twt_status_display_v1()
11588 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11590 command += bytes_written; in wl_android_twt_status_display_v1()
11593 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11595 command += bytes_written; in wl_android_twt_status_display_v1()
11616 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11618 command += bytes_written; in wl_android_twt_status_display_v1()
11624 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11627 command += bytes_written; in wl_android_twt_status_display_v1()
11630 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11633 command += bytes_written; in wl_android_twt_status_display_v1()
11636 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11643 command += bytes_written; in wl_android_twt_status_display_v1()
11646 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11649 command += bytes_written; in wl_android_twt_status_display_v1()
11652 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11655 command += bytes_written; in wl_android_twt_status_display_v1()
11657 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11659 command += bytes_written; in wl_android_twt_status_display_v1()
11662 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11664 command += bytes_written; in wl_android_twt_status_display_v1()
11667 bytes_written = scnprintf(command, rem_len, in wl_android_twt_status_display_v1()
11669 command += bytes_written; in wl_android_twt_status_display_v1()
11698 wl_android_twt_status_query(struct net_device *dev, char *command, int total_len) in wl_android_twt_status_query() argument
11744 ret = wl_android_twt_status_display_v1(&result, command, total_len); in wl_android_twt_status_query()
11761 wl_android_twt_info(struct net_device *ndev, char *command, int total_len) in wl_android_twt_info() argument
11773 WL_DBG_MEM(("Enter. cmd:%s\n", command)); in wl_android_twt_info()
11775 if (strlen(command) == strlen(CMD_TWT_INFO)) { in wl_android_twt_info()
11790 pos = command + sizeof(CMD_TWT_TEARDOWN); in wl_android_twt_info()
11858 wl_android_twt_teardown(struct net_device *ndev, char *command, int total_len) in wl_android_twt_teardown() argument
11869 WL_DBG_MEM(("Enter. cmd:%s\n", command)); in wl_android_twt_teardown()
11871 if (strlen(command) == strlen(CMD_TWT_TEARDOWN)) { in wl_android_twt_teardown()
11885 pos = command + sizeof(CMD_TWT_TEARDOWN); in wl_android_twt_teardown()
11957 wl_android_twt_stats_display_v2(wl_twt_stats_v2_t *stats, char *command, int total_len) in wl_android_twt_stats_display_v2() argument
11967 bytes_written = scnprintf(command, rem_len, in wl_android_twt_stats_display_v2()
11972 command += bytes_written; in wl_android_twt_stats_display_v2()
11984 wl_android_twt_stats(struct net_device *ndev, char *command, int total_len) in wl_android_twt_stats() argument
11996 WL_DBG_MEM(("Enter. cmd:%s\n", command)); in wl_android_twt_stats()
12006 if (!(strnicmp(command, CMD_TWT_CLR_STATS, strlen(CMD_TWT_CLR_STATS)))) { in wl_android_twt_stats()
12008 pos = command + sizeof(CMD_TWT_CLR_STATS); in wl_android_twt_stats()
12009 } else if (!(strnicmp(command, CMD_TWT_GET_STATS, strlen(CMD_TWT_GET_STATS)))) { in wl_android_twt_stats()
12010 pos = command + sizeof(CMD_TWT_GET_STATS); in wl_android_twt_stats()
12046 if (!(strnicmp(command, CMD_TWT_GET_STATS, strlen(CMD_TWT_GET_STATS)))) { in wl_android_twt_stats()
12049 command, total_len); in wl_android_twt_stats()
12067 wl_handle_private_cmd(struct net_device *net, char *command, u32 cmd_len) in wl_handle_private_cmd() argument
12075 if (strnicmp(command, CMD_START, strlen(CMD_START)) == 0) { in wl_handle_private_cmd()
12076 ANDROID_INFO(("%s, Received regular START command\n", __FUNCTION__)); in wl_handle_private_cmd()
12087 else if (strnicmp(command, CMD_SETFWPATH, strlen(CMD_SETFWPATH)) == 0) { in wl_handle_private_cmd()
12088 bytes_written = wl_android_set_fwpath(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12093 __FUNCTION__, command)); in wl_handle_private_cmd()
12097 if (strnicmp(command, CMD_STOP, strlen(CMD_STOP)) == 0) { in wl_handle_private_cmd()
12109 else if (strnicmp(command, CMD_SCAN_ACTIVE, strlen(CMD_SCAN_ACTIVE)) == 0) { in wl_handle_private_cmd()
12110 wl_cfg80211_set_passive_scan(net, command); in wl_handle_private_cmd()
12112 else if (strnicmp(command, CMD_SCAN_PASSIVE, strlen(CMD_SCAN_PASSIVE)) == 0) { in wl_handle_private_cmd()
12113 wl_cfg80211_set_passive_scan(net, command); in wl_handle_private_cmd()
12116 else if (strnicmp(command, CMD_RSSI, strlen(CMD_RSSI)) == 0) { in wl_handle_private_cmd()
12117 bytes_written = wl_android_get_rssi(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12119 else if (strnicmp(command, CMD_LINKSPEED, strlen(CMD_LINKSPEED)) == 0) { in wl_handle_private_cmd()
12120 bytes_written = wl_android_get_link_speed(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12123 else if (strnicmp(command, CMD_RXFILTER_START, strlen(CMD_RXFILTER_START)) == 0) { in wl_handle_private_cmd()
12126 else if (strnicmp(command, CMD_RXFILTER_STOP, strlen(CMD_RXFILTER_STOP)) == 0) { in wl_handle_private_cmd()
12129 else if (strnicmp(command, CMD_RXFILTER_ADD, strlen(CMD_RXFILTER_ADD)) == 0) { in wl_handle_private_cmd()
12130 int filter_num = *(command + strlen(CMD_RXFILTER_ADD) + 1) - '0'; in wl_handle_private_cmd()
12133 else if (strnicmp(command, CMD_RXFILTER_REMOVE, strlen(CMD_RXFILTER_REMOVE)) == 0) { in wl_handle_private_cmd()
12134 int filter_num = *(command + strlen(CMD_RXFILTER_REMOVE) + 1) - '0'; in wl_handle_private_cmd()
12138 else if (strnicmp(command, CMD_BTCOEXSCAN_START, strlen(CMD_BTCOEXSCAN_START)) == 0) { in wl_handle_private_cmd()
12141 else if (strnicmp(command, CMD_BTCOEXSCAN_STOP, strlen(CMD_BTCOEXSCAN_STOP)) == 0) { in wl_handle_private_cmd()
12144 else if (strnicmp(command, CMD_BTCOEXMODE, strlen(CMD_BTCOEXMODE)) == 0) { in wl_handle_private_cmd()
12147 bytes_written = wl_cfg80211_set_btcoex_dhcp(net, dhdp, command); in wl_handle_private_cmd()
12150 uint mode = *(command + strlen(CMD_BTCOEXMODE) + 1) - '0'; in wl_handle_private_cmd()
12159 else if (strnicmp(command, CMD_SETSUSPENDOPT, strlen(CMD_SETSUSPENDOPT)) == 0) { in wl_handle_private_cmd()
12160 bytes_written = wl_android_set_suspendopt(net, command); in wl_handle_private_cmd()
12162 else if (strnicmp(command, CMD_SETSUSPENDMODE, strlen(CMD_SETSUSPENDMODE)) == 0) { in wl_handle_private_cmd()
12163 bytes_written = wl_android_set_suspendmode(net, command); in wl_handle_private_cmd()
12165 else if (strnicmp(command, CMD_SETDTIM_IN_SUSPEND, strlen(CMD_SETDTIM_IN_SUSPEND)) == 0) { in wl_handle_private_cmd()
12166 bytes_written = wl_android_set_bcn_li_dtim(net, command); in wl_handle_private_cmd()
12168 else if (strnicmp(command, CMD_MAXDTIM_IN_SUSPEND, strlen(CMD_MAXDTIM_IN_SUSPEND)) == 0) { in wl_handle_private_cmd()
12169 bytes_written = wl_android_set_max_dtim(net, command); in wl_handle_private_cmd()
12172 else if (strnicmp(command, CMD_DISDTIM_IN_SUSPEND, strlen(CMD_DISDTIM_IN_SUSPEND)) == 0) { in wl_handle_private_cmd()
12173 bytes_written = wl_android_set_disable_dtim_in_suspend(net, command); in wl_handle_private_cmd()
12177 else if (strnicmp(command, CMD_SETBAND, strlen(CMD_SETBAND)) == 0) { in wl_handle_private_cmd()
12178 bytes_written = wl_android_set_band(net, command); in wl_handle_private_cmd()
12181 else if (strnicmp(command, CMD_GETBAND, strlen(CMD_GETBAND)) == 0) { in wl_handle_private_cmd()
12182 bytes_written = wl_android_get_band(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12185 else if (strnicmp(command, CMD_SET_CSA, strlen(CMD_SET_CSA)) == 0) { in wl_handle_private_cmd()
12186 bytes_written = wl_android_set_csa(net, command); in wl_handle_private_cmd()
12187 } else if (strnicmp(command, CMD_80211_MODE, strlen(CMD_80211_MODE)) == 0) { in wl_handle_private_cmd()
12188 bytes_written = wl_android_get_80211_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12189 } else if (strnicmp(command, CMD_CHANSPEC, strlen(CMD_CHANSPEC)) == 0) { in wl_handle_private_cmd()
12190 bytes_written = wl_android_get_chanspec(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12195 else if (strnicmp(command, CMD_COUNTRY, strlen(CMD_COUNTRY)) == 0) { in wl_handle_private_cmd()
12203 char *country_code = command + strlen(CMD_COUNTRY) + 1; in wl_handle_private_cmd()
12246 else if (strnicmp(command, CMD_DATARATE, strlen(CMD_DATARATE)) == 0) { in wl_handle_private_cmd()
12247 bytes_written = wl_android_get_datarate(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12248 } else if (strnicmp(command, CMD_ASSOC_CLIENTS, strlen(CMD_ASSOC_CLIENTS)) == 0) { in wl_handle_private_cmd()
12249 bytes_written = wl_android_get_assoclist(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12253 else if (strnicmp(command, CMD_ROAM_VSIE_ENAB_SET, strlen(CMD_ROAM_VSIE_ENAB_SET)) == 0) { in wl_handle_private_cmd()
12254 bytes_written = wl_android_set_roam_vsie_enab(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12255 } else if (strnicmp(command, CMD_ROAM_VSIE_ENAB_GET, strlen(CMD_ROAM_VSIE_ENAB_GET)) == 0) { in wl_handle_private_cmd()
12256 bytes_written = wl_android_get_roam_vsie_enab(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12257 } else if (strnicmp(command, CMD_BR_VSIE_ENAB_SET, strlen(CMD_BR_VSIE_ENAB_SET)) == 0) { in wl_handle_private_cmd()
12258 bytes_written = wl_android_set_bcn_rpt_vsie_enab(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12259 } else if (strnicmp(command, CMD_BR_VSIE_ENAB_GET, strlen(CMD_BR_VSIE_ENAB_GET)) == 0) { in wl_handle_private_cmd()
12260 bytes_written = wl_android_get_bcn_rpt_vsie_enab(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12263 else if (strnicmp(command, CMD_GETNCHOMODE, strlen(CMD_GETNCHOMODE)) == 0) { in wl_handle_private_cmd()
12264 bytes_written = wl_android_get_ncho_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12266 else if (strnicmp(command, CMD_SETNCHOMODE, strlen(CMD_SETNCHOMODE)) == 0) { in wl_handle_private_cmd()
12268 sscanf(command, "%*s %d", &mode); in wl_handle_private_cmd()
12271 else if (strnicmp(command, CMD_OKC_SET_PMK, strlen(CMD_OKC_SET_PMK)) == 0) { in wl_handle_private_cmd()
12272 bytes_written = wl_android_set_pmk(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12274 else if (strnicmp(command, CMD_OKC_ENABLE, strlen(CMD_OKC_ENABLE)) == 0) { in wl_handle_private_cmd()
12275 bytes_written = wl_android_okc_enable(net, command); in wl_handle_private_cmd()
12277 else if (wl_android_legacy_check_command(net, command)) { in wl_handle_private_cmd()
12278 bytes_written = wl_android_legacy_private_command(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12280 else if (wl_android_ncho_check_command(net, command)) { in wl_handle_private_cmd()
12281 bytes_written = wl_android_ncho_private_command(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12285 else if (strnicmp(command, CMD_RESTORE_SCAN_PARAMS, strlen(CMD_RESTORE_SCAN_PARAMS)) == 0) { in wl_handle_private_cmd()
12286 bytes_written = wl_android_default_set_scan_params(net, command, in wl_handle_private_cmd()
12291 else if (strnicmp(command, CMD_TDLS_RESET, strlen(CMD_TDLS_RESET)) == 0) { in wl_handle_private_cmd()
12296 else if (strnicmp(command, CMD_SROAM_TURN_ON, strlen(CMD_SROAM_TURN_ON)) == 0) { in wl_handle_private_cmd()
12297 int mode = *(command + strlen(CMD_SROAM_TURN_ON) + 1) - '0'; in wl_handle_private_cmd()
12300 else if (strnicmp(command, CMD_SROAM_SET_INFO, strlen(CMD_SROAM_SET_INFO)) == 0) { in wl_handle_private_cmd()
12301 char *data = (command + strlen(CMD_SROAM_SET_INFO) + 1); in wl_handle_private_cmd()
12302 bytes_written = wl_android_sroam_set_info(net, data, command, priv_cmd.total_len); in wl_handle_private_cmd()
12304 else if (strnicmp(command, CMD_SROAM_GET_INFO, strlen(CMD_SROAM_GET_INFO)) == 0) { in wl_handle_private_cmd()
12305 bytes_written = wl_android_sroam_get_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12309 else if (strnicmp(command, CMD_ROAM_RSSI_LMT, strlen(CMD_ROAM_RSSI_LMT)) == 0) { in wl_handle_private_cmd()
12310 bytes_written = wl_android_roam_rssi_limit(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12314 else if (strnicmp(command, CMD_ROAM_MIN_DELTA, strlen(CMD_ROAM_MIN_DELTA)) == 0) { in wl_handle_private_cmd()
12315 bytes_written = wl_android_roam_min_delta(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12318 else if (strnicmp(command, CMD_SET_DISCONNECT_IES, strlen(CMD_SET_DISCONNECT_IES)) == 0) { in wl_handle_private_cmd()
12319 bytes_written = wl_android_set_disconnect_ies(net, command); in wl_handle_private_cmd()
12324 else if (strnicmp(command, CMD_PNOSSIDCLR_SET, strlen(CMD_PNOSSIDCLR_SET)) == 0) { in wl_handle_private_cmd()
12328 else if (strnicmp(command, CMD_PNOSETUP_SET, strlen(CMD_PNOSETUP_SET)) == 0) { in wl_handle_private_cmd()
12329 bytes_written = wl_android_set_pno_setup(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12332 else if (strnicmp(command, CMD_PNOENABLE_SET, strlen(CMD_PNOENABLE_SET)) == 0) { in wl_handle_private_cmd()
12333 int enable = *(command + strlen(CMD_PNOENABLE_SET) + 1) - '0'; in wl_handle_private_cmd()
12336 else if (strnicmp(command, CMD_WLS_BATCHING, strlen(CMD_WLS_BATCHING)) == 0) { in wl_handle_private_cmd()
12337 bytes_written = wls_parse_batching_cmd(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12340 else if (strnicmp(command, CMD_P2P_DEV_ADDR, strlen(CMD_P2P_DEV_ADDR)) == 0) { in wl_handle_private_cmd()
12341 bytes_written = wl_android_get_p2p_dev_addr(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12343 else if (strnicmp(command, CMD_P2P_SET_NOA, strlen(CMD_P2P_SET_NOA)) == 0) { in wl_handle_private_cmd()
12345 bytes_written = wl_cfg80211_set_p2p_noa(net, command + skip, in wl_handle_private_cmd()
12349 else if (strnicmp(command, CMD_P2P_SD_OFFLOAD, strlen(CMD_P2P_SD_OFFLOAD)) == 0) { in wl_handle_private_cmd()
12350 u8 *buf = command; in wl_handle_private_cmd()
12370 else if (strnicmp(command, CMD_P2P_LISTEN_OFFLOAD, strlen(CMD_P2P_LISTEN_OFFLOAD)) == 0) { in wl_handle_private_cmd()
12371 u8 *sub_command = strchr(command, ' '); in wl_handle_private_cmd()
12372 bytes_written = wl_cfg80211_p2plo_offload(net, command, sub_command, in wl_handle_private_cmd()
12377 else if (strnicmp(command, CMD_P2P_GET_NOA, strlen(CMD_P2P_GET_NOA)) == 0) { in wl_handle_private_cmd()
12378 bytes_written = wl_cfg80211_get_p2p_noa(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12381 else if (strnicmp(command, CMD_P2P_SET_PS, strlen(CMD_P2P_SET_PS)) == 0) { in wl_handle_private_cmd()
12383 bytes_written = wl_cfg80211_set_p2p_ps(net, command + skip, in wl_handle_private_cmd()
12386 else if (strnicmp(command, CMD_P2P_ECSA, strlen(CMD_P2P_ECSA)) == 0) { in wl_handle_private_cmd()
12388 bytes_written = wl_cfg80211_set_p2p_ecsa(net, command + skip, in wl_handle_private_cmd()
12391 /* This command is not for normal VSDB operation but for only specific P2P operation. in wl_handle_private_cmd()
12394 else if (strnicmp(command, CMD_P2P_INC_BW, strlen(CMD_P2P_INC_BW)) == 0) { in wl_handle_private_cmd()
12397 command + skip, priv_cmd.total_len - skip); in wl_handle_private_cmd()
12400 else if (strnicmp(command, CMD_SET_AP_WPS_P2P_IE, in wl_handle_private_cmd()
12403 bytes_written = wl_cfg80211_set_wps_p2p_ie(net, command + skip, in wl_handle_private_cmd()
12404 priv_cmd.total_len - skip, *(command + skip - 2) - '0'); in wl_handle_private_cmd()
12407 else if (strnicmp(command, CMD_GET_FTKEY, strlen(CMD_GET_FTKEY)) == 0) { in wl_handle_private_cmd()
12408 bytes_written = wl_cfg80211_get_fbt_key(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12413 else if (strnicmp(command, CMD_GET_BEST_CHANNELS, in wl_handle_private_cmd()
12415 bytes_written = wl_android_get_best_channels(net, command, in wl_handle_private_cmd()
12420 else if (strnicmp(command, CMD_SET_HAPD_AUTO_CHANNEL, in wl_handle_private_cmd()
12423 bytes_written = wl_android_set_auto_channel(net, (const char*)command+skip, command, in wl_handle_private_cmd()
12430 else if (strnicmp(command, CMD_AMPDU_MPDU, strlen(CMD_AMPDU_MPDU)) == 0) { in wl_handle_private_cmd()
12432 bytes_written = wl_android_set_ampdu_mpdu(net, (const char*)command+skip); in wl_handle_private_cmd()
12436 else if (strnicmp(command, CMD_SET_HAPD_MAX_NUM_STA, in wl_handle_private_cmd()
12439 wl_android_set_max_num_sta(net, (const char*)command+skip); in wl_handle_private_cmd()
12441 else if (strnicmp(command, CMD_SET_HAPD_SSID, in wl_handle_private_cmd()
12444 wl_android_set_ssid(net, (const char*)command+skip); in wl_handle_private_cmd()
12446 else if (strnicmp(command, CMD_SET_HAPD_HIDE_SSID, in wl_handle_private_cmd()
12449 wl_android_set_hide_ssid(net, (const char*)command+skip); in wl_handle_private_cmd()
12453 else if (strnicmp(command, CMD_HAPD_STA_DISASSOC, in wl_handle_private_cmd()
12456 wl_android_sta_diassoc(net, (const char*)command+skip); in wl_handle_private_cmd()
12460 else if (strnicmp(command, CMD_HAPD_LPC_ENABLED, in wl_handle_private_cmd()
12463 wl_android_set_lpc(net, (const char*)command+skip); in wl_handle_private_cmd()
12467 else if (strnicmp(command, CMD_TEST_FORCE_HANG, in wl_handle_private_cmd()
12470 net_os_send_hang_message_reason(net, (const char*)command+skip); in wl_handle_private_cmd()
12473 else if (strnicmp(command, CMD_CHANGE_RL, strlen(CMD_CHANGE_RL)) == 0) in wl_handle_private_cmd()
12475 else if (strnicmp(command, CMD_RESTORE_RL, strlen(CMD_RESTORE_RL)) == 0) in wl_handle_private_cmd()
12478 else if (strnicmp(command, CMD_LTECX_SET, strlen(CMD_LTECX_SET)) == 0) { in wl_handle_private_cmd()
12480 bytes_written = wl_android_set_ltecx(net, (const char*)command+skip); in wl_handle_private_cmd()
12484 else if (strnicmp(command, CMD_SET_RMC_ENABLE, strlen(CMD_SET_RMC_ENABLE)) == 0) { in wl_handle_private_cmd()
12485 int rmc_enable = *(command + strlen(CMD_SET_RMC_ENABLE) + 1) - '0'; in wl_handle_private_cmd()
12488 else if (strnicmp(command, CMD_SET_RMC_TXRATE, strlen(CMD_SET_RMC_TXRATE)) == 0) { in wl_handle_private_cmd()
12490 sscanf(command, "%*s %10d", &rmc_txrate); in wl_handle_private_cmd()
12493 else if (strnicmp(command, CMD_SET_RMC_ACTPERIOD, strlen(CMD_SET_RMC_ACTPERIOD)) == 0) { in wl_handle_private_cmd()
12495 sscanf(command, "%*s %10d", &actperiod); in wl_handle_private_cmd()
12498 else if (strnicmp(command, CMD_SET_RMC_IDLEPERIOD, strlen(CMD_SET_RMC_IDLEPERIOD)) == 0) { in wl_handle_private_cmd()
12500 sscanf(command, "%*s %10d", &acktimeout); in wl_handle_private_cmd()
12504 else if (strnicmp(command, CMD_SET_RMC_LEADER, strlen(CMD_SET_RMC_LEADER)) == 0) { in wl_handle_private_cmd()
12506 bytes_written = wl_android_rmc_set_leader(net, (const char*)command+skip); in wl_handle_private_cmd()
12508 else if (strnicmp(command, CMD_SET_RMC_EVENT, in wl_handle_private_cmd()
12510 bytes_written = wl_android_set_rmc_event(net, command); in wl_handle_private_cmd()
12513 else if (strnicmp(command, CMD_GET_SCSCAN, strlen(CMD_GET_SCSCAN)) == 0) { in wl_handle_private_cmd()
12514 bytes_written = wl_android_get_singlecore_scan(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12516 else if (strnicmp(command, CMD_SET_SCSCAN, strlen(CMD_SET_SCSCAN)) == 0) { in wl_handle_private_cmd()
12517 bytes_written = wl_android_set_singlecore_scan(net, command); in wl_handle_private_cmd()
12520 else if (strnicmp(command, CMD_TEST_SET_TX_POWER, in wl_handle_private_cmd()
12523 wl_android_set_tx_power(net, (const char*)command+skip); in wl_handle_private_cmd()
12525 else if (strnicmp(command, CMD_TEST_GET_TX_POWER, in wl_handle_private_cmd()
12527 wl_android_get_tx_power(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12530 else if (strnicmp(command, CMD_SARLIMIT_TX_CONTROL, in wl_handle_private_cmd()
12533 bytes_written = wl_android_set_sarlimit_txctrl(net, (const char*)command+skip); in wl_handle_private_cmd()
12536 else if (strnicmp(command, CMD_SET_TID, strlen(CMD_SET_TID)) == 0) { in wl_handle_private_cmd()
12537 bytes_written = wl_android_set_tid(net, command); in wl_handle_private_cmd()
12539 else if (strnicmp(command, CMD_GET_TID, strlen(CMD_GET_TID)) == 0) { in wl_handle_private_cmd()
12540 bytes_written = wl_android_get_tid(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12544 else if (strnicmp(command, CMD_WTC_CONFIG, strlen(CMD_WTC_CONFIG)) == 0) { in wl_handle_private_cmd()
12545 bytes_written = wl_android_wtc_config(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12549 else if (strnicmp(command, CMD_HAPD_MAC_FILTER, strlen(CMD_HAPD_MAC_FILTER)) == 0) { in wl_handle_private_cmd()
12551 wl_android_set_mac_address_filter(net, command+skip); in wl_handle_private_cmd()
12553 else if (strnicmp(command, CMD_SETROAMMODE, strlen(CMD_SETROAMMODE)) == 0) in wl_handle_private_cmd()
12554 bytes_written = wl_android_set_roam_mode(net, command); in wl_handle_private_cmd()
12556 else if (strnicmp(command, CMD_SET_ROAMPREF, strlen(CMD_SET_ROAMPREF)) == 0) { in wl_handle_private_cmd()
12557 bytes_written = wl_android_set_roampref(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12561 else if (strnicmp(command, CMD_MIRACAST, strlen(CMD_MIRACAST)) == 0) in wl_handle_private_cmd()
12562 bytes_written = wl_android_set_miracast(net, command); in wl_handle_private_cmd()
12563 else if (strnicmp(command, CMD_SETIBSSBEACONOUIDATA, strlen(CMD_SETIBSSBEACONOUIDATA)) == 0) in wl_handle_private_cmd()
12565 command, priv_cmd.total_len); in wl_handle_private_cmd()
12568 else if (strnicmp(command, CMD_SETIBSSTXFAILEVENT, in wl_handle_private_cmd()
12570 bytes_written = wl_android_set_ibss_txfail_event(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12571 else if (strnicmp(command, CMD_GET_IBSS_PEER_INFO_ALL, in wl_handle_private_cmd()
12573 bytes_written = wl_android_get_ibss_peer_info(net, command, priv_cmd.total_len, in wl_handle_private_cmd()
12575 else if (strnicmp(command, CMD_GET_IBSS_PEER_INFO, in wl_handle_private_cmd()
12577 bytes_written = wl_android_get_ibss_peer_info(net, command, priv_cmd.total_len, in wl_handle_private_cmd()
12579 else if (strnicmp(command, CMD_SETIBSSROUTETABLE, in wl_handle_private_cmd()
12581 bytes_written = wl_android_set_ibss_routetable(net, command); in wl_handle_private_cmd()
12582 else if (strnicmp(command, CMD_SETIBSSAMPDU, strlen(CMD_SETIBSSAMPDU)) == 0) in wl_handle_private_cmd()
12583 bytes_written = wl_android_set_ibss_ampdu(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12584 else if (strnicmp(command, CMD_SETIBSSANTENNAMODE, strlen(CMD_SETIBSSANTENNAMODE)) == 0) in wl_handle_private_cmd()
12585 bytes_written = wl_android_set_ibss_antenna(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12587 else if (strnicmp(command, CMD_KEEP_ALIVE, strlen(CMD_KEEP_ALIVE)) == 0) { in wl_handle_private_cmd()
12589 bytes_written = wl_keep_alive_set(net, command + skip); in wl_handle_private_cmd()
12592 else if (strnicmp(command, CMD_ROAM_OFFLOAD, strlen(CMD_ROAM_OFFLOAD)) == 0) { in wl_handle_private_cmd()
12593 int enable = *(command + strlen(CMD_ROAM_OFFLOAD) + 1) - '0'; in wl_handle_private_cmd()
12596 else if (strnicmp(command, CMD_INTERFACE_CREATE, strlen(CMD_INTERFACE_CREATE)) == 0) { in wl_handle_private_cmd()
12597 char *name = (command + strlen(CMD_INTERFACE_CREATE) +1); in wl_handle_private_cmd()
12607 else if (strnicmp(command, CMD_INTERFACE_DELETE, strlen(CMD_INTERFACE_DELETE)) == 0) { in wl_handle_private_cmd()
12608 char *name = (command + strlen(CMD_INTERFACE_DELETE) +1); in wl_handle_private_cmd()
12613 else if (strnicmp(command, CMD_GET_LINK_STATUS, strlen(CMD_GET_LINK_STATUS)) == 0) { in wl_handle_private_cmd()
12614 bytes_written = wl_android_get_link_status(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12617 else if (strnicmp(command, CMD_P2P_SET_WFDIE_RESP, in wl_handle_private_cmd()
12619 int mode = *(command + strlen(CMD_P2P_SET_WFDIE_RESP) + 1) - '0'; in wl_handle_private_cmd()
12621 } else if (strnicmp(command, CMD_P2P_GET_WFDIE_RESP, in wl_handle_private_cmd()
12623 bytes_written = wl_android_get_wfdie_resp(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12627 else if (strnicmp(command, CMD_DFS_AP_MOVE, strlen(CMD_DFS_AP_MOVE)) == 0) { in wl_handle_private_cmd()
12628 char *data = (command + strlen(CMD_DFS_AP_MOVE) +1); in wl_handle_private_cmd()
12629 bytes_written = wl_cfg80211_dfs_ap_move(net, data, command, priv_cmd.total_len); in wl_handle_private_cmd()
12633 else if (strnicmp(command, CMD_WBTEXT_ENABLE, strlen(CMD_WBTEXT_ENABLE)) == 0) { in wl_handle_private_cmd()
12634 bytes_written = wl_android_wbtext(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12636 else if (strnicmp(command, CMD_WBTEXT_PROFILE_CONFIG, in wl_handle_private_cmd()
12638 char *data = (command + strlen(CMD_WBTEXT_PROFILE_CONFIG) + 1); in wl_handle_private_cmd()
12639 bytes_written = wl_cfg80211_wbtext_config(net, data, command, priv_cmd.total_len); in wl_handle_private_cmd()
12641 else if (strnicmp(command, CMD_WBTEXT_WEIGHT_CONFIG, in wl_handle_private_cmd()
12643 char *data = (command + strlen(CMD_WBTEXT_WEIGHT_CONFIG) + 1); in wl_handle_private_cmd()
12645 command, priv_cmd.total_len); in wl_handle_private_cmd()
12647 else if (strnicmp(command, CMD_WBTEXT_TABLE_CONFIG, in wl_handle_private_cmd()
12649 char *data = (command + strlen(CMD_WBTEXT_TABLE_CONFIG) + 1); in wl_handle_private_cmd()
12651 command, priv_cmd.total_len); in wl_handle_private_cmd()
12653 else if (strnicmp(command, CMD_WBTEXT_DELTA_CONFIG, in wl_handle_private_cmd()
12655 char *data = (command + strlen(CMD_WBTEXT_DELTA_CONFIG) + 1); in wl_handle_private_cmd()
12657 command, priv_cmd.total_len); in wl_handle_private_cmd()
12659 else if (strnicmp(command, CMD_WBTEXT_BTM_TIMER_THRESHOLD, in wl_handle_private_cmd()
12661 bytes_written = wl_cfg80211_wbtext_btm_timer_threshold(net, command, in wl_handle_private_cmd()
12664 else if (strnicmp(command, CMD_WBTEXT_BTM_DELTA, in wl_handle_private_cmd()
12666 bytes_written = wl_cfg80211_wbtext_btm_delta(net, command, in wl_handle_private_cmd()
12669 else if (strnicmp(command, CMD_WBTEXT_ESTM_ENABLE, in wl_handle_private_cmd()
12671 bytes_written = wl_cfg80211_wbtext_estm_enable(net, command, in wl_handle_private_cmd()
12676 else if (strnicmp(command, CMD_ADD_WFDS_HASH, strlen(CMD_ADD_WFDS_HASH)) == 0) { in wl_handle_private_cmd()
12677 bytes_written = wl_android_set_wfds_hash(net, command, 1); in wl_handle_private_cmd()
12679 else if (strnicmp(command, CMD_DEL_WFDS_HASH, strlen(CMD_DEL_WFDS_HASH)) == 0) { in wl_handle_private_cmd()
12680 bytes_written = wl_android_set_wfds_hash(net, command, 0); in wl_handle_private_cmd()
12684 else if (strnicmp(command, CMD_TBOW_TEARDOWN, strlen(CMD_TBOW_TEARDOWN)) == 0) { in wl_handle_private_cmd()
12690 else if (strnicmp(command, CMD_GET_FCC_PWR_LIMIT_2G, in wl_handle_private_cmd()
12692 bytes_written = wl_android_get_fcc_pwr_limit_2g(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12694 else if (strnicmp(command, CMD_SET_FCC_PWR_LIMIT_2G, in wl_handle_private_cmd()
12696 bytes_written = wl_android_set_fcc_pwr_limit_2g(net, command); in wl_handle_private_cmd()
12699 else if (strnicmp(command, CMD_GET_STA_INFO, strlen(CMD_GET_STA_INFO)) == 0) { in wl_handle_private_cmd()
12700 bytes_written = wl_cfg80211_get_sta_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12703 else if (strnicmp(command, CMD_MURX_BFE_CAP, in wl_handle_private_cmd()
12706 uint val = *(command + strlen(CMD_MURX_BFE_CAP) + 1) - '0'; in wl_handle_private_cmd()
12713 else if (strnicmp(command, CMD_GET_AP_BASICRATE, strlen(CMD_GET_AP_BASICRATE)) == 0) { in wl_handle_private_cmd()
12714 bytes_written = wl_android_get_ap_basicrate(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12716 else if (strnicmp(command, CMD_SET_AP_BEACONRATE, strlen(CMD_SET_AP_BEACONRATE)) == 0) { in wl_handle_private_cmd()
12717 bytes_written = wl_android_set_ap_beaconrate(net, command); in wl_handle_private_cmd()
12721 else if (strnicmp(command, CMD_SET_AP_RPS_PARAMS, strlen(CMD_SET_AP_RPS_PARAMS)) == 0) { in wl_handle_private_cmd()
12722 bytes_written = wl_android_set_ap_rps_params(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12724 else if (strnicmp(command, CMD_SET_AP_RPS, strlen(CMD_SET_AP_RPS)) == 0) { in wl_handle_private_cmd()
12725 bytes_written = wl_android_set_ap_rps(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12727 else if (strnicmp(command, CMD_GET_AP_RPS, strlen(CMD_GET_AP_RPS)) == 0) { in wl_handle_private_cmd()
12728 bytes_written = wl_android_get_ap_rps(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12732 else if (strnicmp(command, CMD_SET_AP_SUSPEND, strlen(CMD_SET_AP_SUSPEND)) == 0) { in wl_handle_private_cmd()
12733 bytes_written = wl_android_set_ap_suspend(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12737 else if (strnicmp(command, CMD_SET_AP_BW, strlen(CMD_SET_AP_BW)) == 0) { in wl_handle_private_cmd()
12738 bytes_written = wl_android_set_ap_bw(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12740 else if (strnicmp(command, CMD_GET_AP_BW, strlen(CMD_GET_AP_BW)) == 0) { in wl_handle_private_cmd()
12741 bytes_written = wl_android_get_ap_bw(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12745 else if (strnicmp(command, CMD_SET_RSSI_LOGGING, strlen(CMD_SET_RSSI_LOGGING)) == 0) { in wl_handle_private_cmd()
12746 bytes_written = wl_android_set_rssi_logging(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12748 else if (strnicmp(command, CMD_GET_RSSI_LOGGING, strlen(CMD_GET_RSSI_LOGGING)) == 0) { in wl_handle_private_cmd()
12749 bytes_written = wl_android_get_rssi_logging(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12751 else if (strnicmp(command, CMD_GET_RSSI_PER_ANT, strlen(CMD_GET_RSSI_PER_ANT)) == 0) { in wl_handle_private_cmd()
12752 bytes_written = wl_android_get_rssi_per_ant(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12756 else if (strnicmp(command, CMD_GET_BSS_INFO, strlen(CMD_GET_BSS_INFO)) == 0) { in wl_handle_private_cmd()
12757 bytes_written = wl_cfg80211_get_bss_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12759 else if (strnicmp(command, CMD_GET_ASSOC_REJECT_INFO, strlen(CMD_GET_ASSOC_REJECT_INFO)) in wl_handle_private_cmd()
12761 bytes_written = wl_cfg80211_get_connect_failed_status(net, command, in wl_handle_private_cmd()
12766 else if (strnicmp(command, ENABLE_RANDOM_MAC, strlen(ENABLE_RANDOM_MAC)) == 0) { in wl_handle_private_cmd()
12768 } else if (strnicmp(command, DISABLE_RANDOM_MAC, strlen(DISABLE_RANDOM_MAC)) == 0) { in wl_handle_private_cmd()
12773 else if (strnicmp(command, CMD_NATOE, strlen(CMD_NATOE)) == 0) { in wl_handle_private_cmd()
12774 bytes_written = wl_android_process_natoe_cmd(net, command, in wl_handle_private_cmd()
12779 else if (strnicmp(command, CMD_GET_CONNECTION_STATS, in wl_handle_private_cmd()
12781 bytes_written = wl_android_get_connection_stats(net, command, in wl_handle_private_cmd()
12786 else if (strnicmp(command, CMD_NEW_DEBUG_PRINT_DUMP, in wl_handle_private_cmd()
12789 /* check whether it has more command */ in wl_handle_private_cmd()
12790 if (strnicmp(command + strlen(CMD_NEW_DEBUG_PRINT_DUMP), " ", 1) == 0) { in wl_handle_private_cmd()
12791 /* compare unwanted/disconnected command */ in wl_handle_private_cmd()
12792 if (strnicmp(command + strlen(CMD_NEW_DEBUG_PRINT_DUMP) + 1, in wl_handle_private_cmd()
12795 } else if (strnicmp(command + strlen(CMD_NEW_DEBUG_PRINT_DUMP) + 1, in wl_handle_private_cmd()
12807 else if (strnicmp(command, CMD_DUMP_STATUS_LOG, strlen(CMD_DUMP_STATUS_LOG)) == 0) { in wl_handle_private_cmd()
12810 else if (strnicmp(command, CMD_QUERY_STATUS_LOG, strlen(CMD_QUERY_STATUS_LOG)) == 0) { in wl_handle_private_cmd()
12812 bytes_written = dhd_statlog_query(dhdp, command, priv_cmd.total_len); in wl_handle_private_cmd()
12816 else if (strnicmp(command, CMD_POWERSAVEMODE_SET, in wl_handle_private_cmd()
12818 bytes_written = wl_android_set_powersave_mode(net, command, in wl_handle_private_cmd()
12821 else if (strnicmp(command, CMD_POWERSAVEMODE_GET, in wl_handle_private_cmd()
12823 bytes_written = wl_android_get_powersave_mode(net, command, in wl_handle_private_cmd()
12828 else if (strnicmp(command, CMD_PCIE_IRQ_CORE, strlen(CMD_PCIE_IRQ_CORE)) == 0) { in wl_handle_private_cmd()
12829 int affinity_cmd = *(command + strlen(CMD_PCIE_IRQ_CORE) + 1) - '0'; in wl_handle_private_cmd()
12834 else if (strnicmp(command, CMD_MAKE_HANG, strlen(CMD_MAKE_HANG)) == 0) { in wl_handle_private_cmd()
12836 wl_android_make_hang_with_reason(net, (const char*)command+skip); in wl_handle_private_cmd()
12840 else if (strnicmp(command, CMD_SET_LQCM_ENABLE, strlen(CMD_SET_LQCM_ENABLE)) == 0) { in wl_handle_private_cmd()
12841 int lqcm_enable = *(command + strlen(CMD_SET_LQCM_ENABLE) + 1) - '0'; in wl_handle_private_cmd()
12844 else if (strnicmp(command, CMD_GET_LQCM_REPORT, in wl_handle_private_cmd()
12846 bytes_written = wl_android_get_lqcm_report(net, command, in wl_handle_private_cmd()
12850 else if (strnicmp(command, CMD_GET_SNR, strlen(CMD_GET_SNR)) == 0) { in wl_handle_private_cmd()
12851 bytes_written = wl_android_get_snr(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12854 else if (strnicmp(command, CMD_SET_ADPS, strlen(CMD_SET_ADPS)) == 0) { in wl_handle_private_cmd()
12856 bytes_written = wl_android_set_adps_mode(net, (const char*)command+skip); in wl_handle_private_cmd()
12858 else if (strnicmp(command, CMD_GET_ADPS, strlen(CMD_GET_ADPS)) == 0) { in wl_handle_private_cmd()
12859 bytes_written = wl_android_get_adps_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12862 else if (strnicmp(command, CMD_GET_GAIN_ADPS, strlen(CMD_GET_GAIN_ADPS)) == 0) { in wl_handle_private_cmd()
12863 bytes_written = wl_android_get_gain_adps(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12865 else if (strnicmp(command, CMD_RESET_GAIN_ADPS, strlen(CMD_RESET_GAIN_ADPS)) == 0) { in wl_handle_private_cmd()
12866 bytes_written = wl_android_reset_gain_adps(net, command); in wl_handle_private_cmd()
12871 else if (strnicmp(command, CMD_PKTLOG_FILTER_ENABLE, in wl_handle_private_cmd()
12873 bytes_written = wl_android_pktlog_filter_enable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12875 else if (strnicmp(command, CMD_PKTLOG_FILTER_DISABLE, in wl_handle_private_cmd()
12877 bytes_written = wl_android_pktlog_filter_disable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12879 else if (strnicmp(command, CMD_PKTLOG_FILTER_PATTERN_ENABLE, in wl_handle_private_cmd()
12882 wl_android_pktlog_filter_pattern_enable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12884 else if (strnicmp(command, CMD_PKTLOG_FILTER_PATTERN_DISABLE, in wl_handle_private_cmd()
12887 wl_android_pktlog_filter_pattern_disable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12889 else if (strnicmp(command, CMD_PKTLOG_FILTER_ADD, strlen(CMD_PKTLOG_FILTER_ADD)) == 0) { in wl_handle_private_cmd()
12890 bytes_written = wl_android_pktlog_filter_add(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12892 else if (strnicmp(command, CMD_PKTLOG_FILTER_DEL, strlen(CMD_PKTLOG_FILTER_DEL)) == 0) { in wl_handle_private_cmd()
12893 bytes_written = wl_android_pktlog_filter_del(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12895 else if (strnicmp(command, CMD_PKTLOG_FILTER_INFO, strlen(CMD_PKTLOG_FILTER_INFO)) == 0) { in wl_handle_private_cmd()
12896 bytes_written = wl_android_pktlog_filter_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12898 else if (strnicmp(command, CMD_PKTLOG_START, strlen(CMD_PKTLOG_START)) == 0) { in wl_handle_private_cmd()
12899 bytes_written = wl_android_pktlog_start(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12901 else if (strnicmp(command, CMD_PKTLOG_STOP, strlen(CMD_PKTLOG_STOP)) == 0) { in wl_handle_private_cmd()
12902 bytes_written = wl_android_pktlog_stop(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12904 else if (strnicmp(command, CMD_PKTLOG_FILTER_EXIST, strlen(CMD_PKTLOG_FILTER_EXIST)) == 0) { in wl_handle_private_cmd()
12905 bytes_written = wl_android_pktlog_filter_exist(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12907 else if (strnicmp(command, CMD_PKTLOG_MINMIZE_ENABLE, in wl_handle_private_cmd()
12909 bytes_written = wl_android_pktlog_minmize_enable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12911 else if (strnicmp(command, CMD_PKTLOG_MINMIZE_DISABLE, in wl_handle_private_cmd()
12913 bytes_written = wl_android_pktlog_minmize_disable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12915 else if (strnicmp(command, CMD_PKTLOG_CHANGE_SIZE, in wl_handle_private_cmd()
12917 bytes_written = wl_android_pktlog_change_size(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12919 else if (strnicmp(command, CMD_PKTLOG_DEBUG_DUMP, strlen(CMD_PKTLOG_DEBUG_DUMP)) == 0) { in wl_handle_private_cmd()
12920 bytes_written = wl_android_pktlog_dbg_dump(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12924 else if (strnicmp(command, CMD_DEBUG_VERBOSE, strlen(CMD_DEBUG_VERBOSE)) == 0) { in wl_handle_private_cmd()
12925 int verbose_level = *(command + strlen(CMD_DEBUG_VERBOSE) + 1) - '0'; in wl_handle_private_cmd()
12930 else if (strnicmp(command, CMD_EWP_FILTER, in wl_handle_private_cmd()
12932 bytes_written = wl_android_ewp_filter(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12936 else if (strnicmp(command, CMD_BEACON_RECV, in wl_handle_private_cmd()
12938 char *data = (command + strlen(CMD_BEACON_RECV) + 1); in wl_handle_private_cmd()
12944 else if (strnicmp(command, CMD_MBO, strlen(CMD_MBO)) == 0) { in wl_handle_private_cmd()
12945 bytes_written = wl_android_process_mbo_cmd(net, command, in wl_handle_private_cmd()
12950 else if (strnicmp(command, CMD_CAC_TSPEC, in wl_handle_private_cmd()
12952 char *data = (command + strlen(CMD_CAC_TSPEC) + 1); in wl_handle_private_cmd()
12958 else if (strnicmp(command, CMD_GET_CHAN_UTIL, in wl_handle_private_cmd()
12961 command, priv_cmd.total_len); in wl_handle_private_cmd()
12966 else if (strnicmp(command, CMD_GEOFENCE_INTERVAL, in wl_handle_private_cmd()
12968 (void)wl_android_set_rtt_geofence_interval(net, command); in wl_handle_private_cmd()
12973 else if (strnicmp(command, CMD_SET_SOFTAP_ELNA_BYPASS, in wl_handle_private_cmd()
12976 wl_android_set_softap_elna_bypass(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12978 else if (strnicmp(command, CMD_GET_SOFTAP_ELNA_BYPASS, in wl_handle_private_cmd()
12981 wl_android_get_softap_elna_bypass(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12985 else if (strnicmp(command, CMD_GET_NAN_STATUS, in wl_handle_private_cmd()
12988 wl_android_get_nan_status(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
12992 else if (strnicmp(command, CMD_NAN_RANGING_SET_BW, strlen(CMD_NAN_RANGING_SET_BW)) == 0) { in wl_handle_private_cmd()
12993 int bw_cmd = *(command + strlen(CMD_NAN_RANGING_SET_BW) + 1) - '0'; in wl_handle_private_cmd()
12994 bytes_written = wl_nan_ranging_bw(net, bw_cmd, command); in wl_handle_private_cmd()
12997 else if (strnicmp(command, CMD_GET_FACTORY_MAC, strlen(CMD_GET_FACTORY_MAC)) == 0) { in wl_handle_private_cmd()
12998 bytes_written = wl_android_get_factory_mac_addr(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13000 else if (strnicmp(command, CMD_HAPD_SET_AX_MODE, strlen(CMD_HAPD_SET_AX_MODE)) == 0) { in wl_handle_private_cmd()
13002 bytes_written = wl_android_set_softap_ax_mode(net, command + skip); in wl_handle_private_cmd()
13005 else if (strnicmp(command, CMD_SET_LATENCY_CRITICAL_DATA, in wl_handle_private_cmd()
13007 int enable = *(command + strlen(CMD_SET_LATENCY_CRITICAL_DATA) + 1) - '0'; in wl_handle_private_cmd()
13010 else if (strnicmp(command, CMD_GET_LATENCY_CRITICAL_DATA, in wl_handle_private_cmd()
13012 bytes_written = wl_android_get_latency_crt_data(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13016 else if (strnicmp(command, CMD_TWT_SETUP, strlen(CMD_TWT_SETUP)) == 0) { in wl_handle_private_cmd()
13017 bytes_written = wl_android_twt_setup(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13019 else if (strnicmp(command, CMD_TWT_TEARDOWN, strlen(CMD_TWT_TEARDOWN)) == 0) { in wl_handle_private_cmd()
13020 bytes_written = wl_android_twt_teardown(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13022 else if (strnicmp(command, CMD_TWT_INFO, strlen(CMD_TWT_INFO)) == 0) { in wl_handle_private_cmd()
13023 bytes_written = wl_android_twt_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13025 else if (strnicmp(command, CMD_TWT_STATUS_QUERY, strlen(CMD_TWT_STATUS_QUERY)) == 0) { in wl_handle_private_cmd()
13026 bytes_written = wl_android_twt_status_query(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13028 else if (strnicmp(command, CMD_TWT_CAPABILITY, strlen(CMD_TWT_CAPABILITY)) == 0) { in wl_handle_private_cmd()
13029 bytes_written = wl_android_twt_cap(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13031 else if ((strnicmp(command, CMD_TWT_GET_STATS, strlen(CMD_TWT_GET_STATS)) == 0) || in wl_handle_private_cmd()
13032 (strnicmp(command, CMD_TWT_CLR_STATS, strlen(CMD_TWT_CLR_STATS)) == 0)) { in wl_handle_private_cmd()
13033 bytes_written = wl_android_twt_stats(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
13037 else if (strnicmp(command, CMD_ENABLE_6G_P2P, strlen(CMD_ENABLE_6G_P2P)) == 0) { in wl_handle_private_cmd()
13038 int enable = *(command + strlen(CMD_ENABLE_6G_P2P) + 1) - '0'; in wl_handle_private_cmd()
13042 else if (wl_android_ext_priv_cmd(net, command, priv_cmd.total_len, &bytes_written) == 0) { in wl_handle_private_cmd()
13045 ANDROID_ERROR(("Unknown PRIVATE command %s - ignored\n", command)); in wl_handle_private_cmd()
13046 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_handle_private_cmd()
13893 wl_cfg80211_wbtext_config(struct net_device *ndev, char *data, char *command, int total_len) in wl_cfg80211_wbtext_config() argument
13923 err = snprintf(command, total_len, "Missing band\n"); in wl_cfg80211_wbtext_config()
14003 bytes_written += scnprintf(command+bytes_written, in wl_cfg80211_wbtext_config()
14011 bytes_written += scnprintf(command+bytes_written, in wl_cfg80211_wbtext_config()
14019 bytes_written += snprintf(command+bytes_written, in wl_cfg80211_wbtext_config()
14028 bytes_written += scnprintf(command+bytes_written, total_len - bytes_written, "\n"); in wl_cfg80211_wbtext_config()
14112 char *command, int total_len) in wl_cfg80211_wbtext_weight_config() argument
14141 ANDROID_ERROR(("%s: Command usage error\n", __func__)); in wl_cfg80211_wbtext_weight_config()
14146 ANDROID_ERROR(("%s: Command usage error\n", __func__)); in wl_cfg80211_wbtext_weight_config()
14163 bytes_written = snprintf(command, total_len, "%s %s weight = %d\n", in wl_cfg80211_wbtext_weight_config()
14170 /* if weight is non integer returns command usage error */ in wl_cfg80211_wbtext_weight_config()
14173 ANDROID_ERROR(("%s: Command usage error", __func__)); in wl_cfg80211_wbtext_weight_config()
14194 char *command, int total_len) in wl_cfg80211_wbtext_table_config() argument
14228 ANDROID_ERROR(("%s: Command usage error\n", __func__)); in wl_cfg80211_wbtext_table_config()
14233 ANDROID_ERROR(("%s: Command usage, Wrong band\n", __func__)); in wl_cfg80211_wbtext_table_config()
14248 bytes_written += snprintf(command + bytes_written, total_len - bytes_written, in wl_cfg80211_wbtext_table_config()
14250 bytes_written += snprintf(command + bytes_written, total_len - bytes_written, in wl_cfg80211_wbtext_table_config()
14253 bytes_written += snprintf(command + bytes_written, total_len - bytes_written, in wl_cfg80211_wbtext_table_config()
14256 bytes_written += snprintf(command + bytes_written, in wl_cfg80211_wbtext_table_config()
14282 ANDROID_ERROR(("%s:Command usage:less no of args\n", __func__)); in wl_cfg80211_wbtext_table_config()
14302 wl_cfg80211_wbtext_delta_config(struct net_device *ndev, char *data, char *command, int total_len) in wl_cfg80211_wbtext_delta_config() argument
14330 /* if delta is non integer returns command usage error */ in wl_cfg80211_wbtext_delta_config()
14333 ANDROID_ERROR(("%s: Command usage error", __func__)); in wl_cfg80211_wbtext_delta_config()
14372 bytes_written = snprintf(command, total_len, in wl_cfg80211_wbtext_delta_config()