Lines Matching full:command
87 * Android private command strings, PLEASE define new private commands here
153 /* Hostapd private command */
546 /* natoe command info structure */
548 uint8 *command; /* pointer to the actual command */ member
549 uint16 tot_len; /* total length of the command */
555 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
567 char *command, int total_len);
569 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
571 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
573 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
575 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
577 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info);
602 wl_android_get_channel_list(struct net_device *dev, char *command, int total_len);
643 /* drv command info structure */
645 uint8 *command; /* pointer to the actual command */ member
646 uint16 tot_len; /* total length of the command */
652 const wl_drv_sub_cmd_t *cmd, char *command, wl_drv_cmd_info_t *cmd_info);
672 char *command, int total_len);
674 const wl_drv_sub_cmd_t *cmd, char *command, wl_drv_cmd_info_t *cmd_info);
676 const wl_drv_sub_cmd_t *cmd, char *command, wl_drv_cmd_info_t *cmd_info);
718 /* commands: mapping between the command enumeration and the actual function */
777 int wl_cfg80211_set_btcoex_dhcp(struct net_device *dev, dhd_pub_t *dhd, char *command);
797 static int wl_android_wbtext(struct net_device *dev, char *command, int total_len);
799 char *command, int total_len);
801 char *command, int total_len);
803 char *command, int total_len);
832 /* private command support for restoring roam/scan parameters */
836 typedef int (*PRIV_CMD_HANDLER) (struct net_device *dev, char *command);
837 typedef int (*PRIV_CMD_HANDLER_WITH_LEN) (struct net_device *dev, char *command, int total_len);
846 char command[64]; member
855 /* function prototypes of private command handler */
856 static int wl_android_set_roam_trigger(struct net_device *dev, char* command);
857 int wl_android_set_roam_delta(struct net_device *dev, char* command);
858 int wl_android_set_roam_scan_period(struct net_device *dev, char* command);
859 int wl_android_set_full_roam_scan_period(struct net_device *dev, char* command, int total_len);
860 int wl_android_set_roam_scan_control(struct net_device *dev, char *command);
861 int wl_android_set_scan_channel_time(struct net_device *dev, char *command);
862 int wl_android_set_scan_home_time(struct net_device *dev, char *command);
863 int wl_android_set_scan_home_away_time(struct net_device *dev, char *command);
864 int wl_android_set_scan_nprobes(struct net_device *dev, char *command);
865 static int wl_android_set_band(struct net_device *dev, char *command);
866 int wl_android_set_scan_dfs_channel_mode(struct net_device *dev, char *command);
867 int wl_android_set_wes_mode(struct net_device *dev, char *command);
868 int wl_android_set_okc_mode(struct net_device *dev, char *command);
958 wl_android_set_channel_width(struct net_device *dev, char *command, int total_len) in wl_android_set_channel_width() argument
963 command = (command + strlen(CMD_CHANNEL_WIDTH)); in wl_android_set_channel_width()
964 command++; in wl_android_set_channel_width()
965 channel_width = bcm_atoi(command); in wl_android_set_channel_width()
984 wl_android_hogsqs(struct net_device *dev, char *command, int total_len) in wl_android_hogsqs() argument
991 char *pos = command; in wl_android_hogsqs()
994 if (*(command + strlen(CMD_AP_HOGSQS)) == '\0') { in wl_android_hogsqs()
1027 bytes_written = snprintf(command, total_len, " %s 0x%x/0x%x", in wl_android_hogsqs()
1030 bytes_written = snprintf(command, total_len, " %s 0x%x", in wl_android_hogsqs()
1055 wl_android_set_bandsteer(struct net_device *dev, char *command, int total_len) in wl_android_set_bandsteer() argument
1065 command = (command + strlen(CMD_BANDSTEER)); in wl_android_set_bandsteer()
1066 command++; in wl_android_set_bandsteer()
1067 token1 = command; in wl_android_set_bandsteer()
1157 struct net_device *dev, char *command, bool enable) in wl_android_set_wfds_hash() argument
1172 wfds_hash = (wl_p2p_wfds_hash_t *)(command + strlen(CMD_ADD_WFDS_HASH) + 1); in wl_android_set_wfds_hash()
1177 wfds_hash = (wl_p2p_wfds_hash_t *)(command + strlen(CMD_DEL_WFDS_HASH) + 1); in wl_android_set_wfds_hash()
1183 DHD_ERROR(("wl_android_set_wfds_hash: failed to %s, error=%d\n", command, error)); in wl_android_set_wfds_hash()
1194 static int wl_android_get_link_speed(struct net_device *net, char *command, int total_len) in wl_android_get_link_speed() argument
1208 bytes_written = snprintf(command, total_len, "LinkSpeed %d", link_speed); in wl_android_get_link_speed()
1209 DHD_INFO(("wl_android_get_link_speed: command result is %s\n", command)); in wl_android_get_link_speed()
1213 static int wl_android_get_rssi(struct net_device *net, char *command, int total_len) in wl_android_get_rssi() argument
1226 delim = strchr(command, ' '); in wl_android_get_rssi()
1227 /* For Ap mode rssi command would be in wl_android_get_rssi()
1247 * In this case, format of private command is as following, in wl_android_get_rssi()
1283 memcpy(command, ssid.SSID, ssid.SSID_len); in wl_android_get_rssi()
1289 bytes_written += scnprintf(&command[bytes_written], total_len - bytes_written, in wl_android_get_rssi()
1291 command[bytes_written] = '\0'; in wl_android_get_rssi()
1293 DHD_TRACE(("wl_android_get_rssi: command result is %s (%d)\n", command, bytes_written)); in wl_android_get_rssi()
1298 static int wl_android_set_suspendopt(struct net_device *dev, char *command) in wl_android_set_suspendopt() argument
1304 suspend_flag = *(command + strlen(CMD_SETSUSPENDOPT) + 1) - '0'; in wl_android_set_suspendopt()
1323 static int wl_android_set_suspendmode(struct net_device *dev, char *command) in wl_android_set_suspendmode() argument
1330 suspend_flag = *(command + strlen(CMD_SETSUSPENDMODE) + 1) - '0'; in wl_android_set_suspendmode()
1344 int wl_android_get_80211_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_80211_mode() argument
1355 bytes_written = snprintf(command, total_len, "%s %s", CMD_80211_MODE, mode); in wl_android_get_80211_mode()
1356 DHD_INFO(("wl_android_get_80211_mode: command:%s EXIT\n", command)); in wl_android_get_80211_mode()
1364 int wl_android_get_chanspec(struct net_device *dev, char *command, int total_len) in wl_android_get_chanspec() argument
1375 /* command is in wl_android_get_chanspec()
1421 bytes_written = snprintf(command, total_len, "%s channel %d band %s bw %d", CMD_CHANSPEC, in wl_android_get_chanspec()
1424 DHD_INFO(("wl_android_get_chanspec: command:%s EXIT\n", command)); in wl_android_get_chanspec()
1430 int wl_android_get_rsdb_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_rsdb_mode() argument
1441 bytes_written = snprintf(command, total_len, "%d", rsdb_mode); in wl_android_get_rsdb_mode()
1447 int wl_android_get_datarate(struct net_device *dev, char *command, int total_len) in wl_android_get_datarate() argument
1459 bytes_written = snprintf(command, total_len, "%s %d", CMD_DATARATE, (datarate/2)); in wl_android_get_datarate()
1463 int wl_android_get_assoclist(struct net_device *dev, char *command, int total_len) in wl_android_get_assoclist() argument
1482 bytes_written = snprintf(command, total_len, "%s listcount: %d Stations:", in wl_android_get_assoclist()
1486 len = snprintf(command + bytes_written, total_len - bytes_written, " " MACDBG, in wl_android_get_assoclist()
1504 static int wl_android_get_channel_list(struct net_device *dev, char *command, int total_len) in wl_android_get_channel_list() argument
1511 char *pos = command; in wl_android_get_channel_list()
1549 return (pos - command); in wl_android_get_channel_list()
1554 static int wl_android_set_csa(struct net_device *dev, char *command) in wl_android_set_csa() argument
1568 DHD_INFO(("wl_android_set_csa: command:%s\n", command)); in wl_android_set_csa()
1579 * SETCSA driver command provides support for AP/AGO to switch its channel in wl_android_set_csa()
1580 * as well as connected STAs channel. This command will send CSA frame and in wl_android_set_csa()
1589 command = (command + strlen(CMD_SET_CSA)); in wl_android_set_csa()
1591 if (!*++command) { in wl_android_set_csa()
1595 csa_arg.mode = bcm_atoi(command); in wl_android_set_csa()
1602 if (!*++command) { in wl_android_set_csa()
1606 command++; in wl_android_set_csa()
1607 csa_arg.count = bcm_atoi(command); in wl_android_set_csa()
1612 str = strchr(command, ' '); in wl_android_set_csa()
1617 command = ++str; in wl_android_set_csa()
1619 str = strchr(command, ' '); in wl_android_set_csa()
1621 strncpy(str_chan, command, (str-command)); in wl_android_set_csa()
1623 strncpy(str_chan, command, strlen(command)); in wl_android_set_csa()
1649 __FUNCTION__, command)); in wl_android_set_csa()
1689 wl_android_set_bcn_li_dtim(struct net_device *dev, char *command) in wl_android_set_bcn_li_dtim() argument
1694 dtim = *(command + strlen(CMD_SETDTIM_IN_SUSPEND) + 1) - '0'; in wl_android_set_bcn_li_dtim()
1713 wl_android_set_max_dtim(struct net_device *dev, char *command) in wl_android_set_max_dtim() argument
1718 dtim_flag = *(command + strlen(CMD_MAXDTIM_IN_SUSPEND) + 1) - '0'; in wl_android_set_max_dtim()
1732 wl_android_set_disable_dtim_in_suspend(struct net_device *dev, char *command) in wl_android_set_disable_dtim_in_suspend() argument
1737 dtim_flag = *(command + strlen(CMD_DISDTIM_IN_SUSPEND) + 1) - '0'; in wl_android_set_disable_dtim_in_suspend()
1751 static int wl_android_get_band(struct net_device *dev, char *command, int total_len) in wl_android_get_band() argument
1760 bytes_written = snprintf(command, total_len, "Band %d", band); in wl_android_get_band()
1765 wl_android_set_band(struct net_device *dev, char *command) in wl_android_set_band() argument
1768 uint band = *(command + strlen(CMD_SETBAND) + 1) - '0'; in wl_android_set_band()
1793 static int wl_android_add_vendor_ie(struct net_device *dev, char *command, int total_len) in wl_android_add_vendor_ie() argument
1807 * ADD_IE driver command provides support for addition of vendor elements in wl_android_add_vendor_ie()
1822 pcmd = command + strlen(CMD_ADDIE) + 1; in wl_android_add_vendor_ie()
1851 /* Copy the vndr_ie SET command ("add"/"del") to the buffer */ in wl_android_add_vendor_ie()
1904 static int wl_android_del_vendor_ie(struct net_device *dev, char *command, int total_len) in wl_android_del_vendor_ie() argument
1918 * DEL_IE driver command provides support for deletoon of vendor elements in wl_android_del_vendor_ie()
1933 pcmd = command + strlen(CMD_DELIE) + 1; in wl_android_del_vendor_ie()
1961 /* Copy the vndr_ie SET command ("add"/"del") to the buffer */ in wl_android_del_vendor_ie()
2023 struct net_device *dev, char* command) in wl_android_set_roam_trigger() argument
2035 sscanf(command, "%*s %10d", &roam_trigger[0]); in wl_android_set_roam_trigger()
2053 struct net_device *dev, char *command, int total_len) in wl_android_get_roam_trigger() argument
2127 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_trigger()
2134 struct net_device *dev, char* command) in wl_android_set_roam_delta() argument
2138 sscanf(command, "%*s %10d", &roam_delta[0]); in wl_android_set_roam_delta()
2146 struct net_device *dev, char *command, int total_len) in wl_android_get_roam_delta() argument
2160 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_delta()
2167 struct net_device *dev, char* command) in wl_android_set_roam_scan_period() argument
2171 sscanf(command, "%*s %10d", &roam_scan_period); in wl_android_set_roam_scan_period()
2177 struct net_device *dev, char *command, int total_len) in wl_android_get_roam_scan_period() argument
2186 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_scan_period()
2193 struct net_device *dev, char* command, int total_len) in wl_android_set_full_roam_scan_period() argument
2199 sscanf(command+sizeof("SETFULLROAMSCANPERIOD"), "%d", &full_roam_scan_period); in wl_android_set_full_roam_scan_period()
2212 struct net_device *dev, char *command, int total_len) in wl_android_get_full_roam_scan_period() argument
2228 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_full_roam_scan_period()
2236 struct net_device *dev, char* command) in wl_android_set_country_rev() argument
2245 * SETCOUNTRYREV driver command provides support setting the country. in wl_android_set_country_rev()
2254 sscanf(command+sizeof("SETCOUNTRYREV"), "%3s %10d", country_code, &rev); in wl_android_set_country_rev()
2277 struct net_device *dev, char *command, int total_len) in wl_android_get_country_rev() argument
2285 * GETCOUNTRYREV driver command provides support getting the country. in wl_android_get_country_rev()
2305 bytes_written = snprintf(command, total_len, "%s %c%c %d", in wl_android_get_country_rev()
2314 int wl_android_get_roam_scan_control(struct net_device *dev, char *command, int total_len) in wl_android_get_roam_scan_control() argument
2327 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETROAMSCANCONTROL, mode); in wl_android_get_roam_scan_control()
2332 int wl_android_set_roam_scan_control(struct net_device *dev, char *command) in wl_android_set_roam_scan_control() argument
2337 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_roam_scan_control()
2353 int wl_android_get_roam_scan_channels(struct net_device *dev, char *command, int total_len) in wl_android_get_roam_scan_channels() argument
2362 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_roam_scan_channels()
2367 len = snprintf(command + bytes_written, buf_avail, " %d", channels[i]); in wl_android_get_roam_scan_channels()
2379 WL_INFORM(("wl_android_get_roam_scan_channels: %s\n", command)); in wl_android_get_roam_scan_channels()
2383 int wl_android_set_roam_scan_channels(struct net_device *dev, char *command) in wl_android_set_roam_scan_channels() argument
2386 unsigned char *p = (unsigned char *)(command + strlen(CMD_SETROAMSCANCHANNELS) + 1); in wl_android_set_roam_scan_channels()
2399 int wl_android_get_scan_channel_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_channel_time() argument
2413 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANCHANNELTIME, time); in wl_android_get_scan_channel_time()
2418 int wl_android_set_scan_channel_time(struct net_device *dev, char *command) in wl_android_set_scan_channel_time() argument
2423 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_channel_time()
2442 wl_android_get_scan_unassoc_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_unassoc_time() argument
2456 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANUNASSOCTIME, time); in wl_android_get_scan_unassoc_time()
2462 wl_android_set_scan_unassoc_time(struct net_device *dev, char *command) in wl_android_set_scan_unassoc_time() argument
2467 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_unassoc_time()
2486 wl_android_get_scan_passive_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_passive_time() argument
2500 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANPASSIVETIME, time); in wl_android_get_scan_passive_time()
2506 wl_android_set_scan_passive_time(struct net_device *dev, char *command) in wl_android_set_scan_passive_time() argument
2511 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_passive_time()
2529 int wl_android_get_scan_home_time(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_home_time() argument
2541 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANHOMETIME, time); in wl_android_get_scan_home_time()
2546 int wl_android_set_scan_home_time(struct net_device *dev, char *command) in wl_android_set_scan_home_time() argument
2551 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_home_time()
2569 int 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
2583 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANHOMEAWAYTIME, time); in wl_android_get_scan_home_away_time()
2588 int wl_android_set_scan_home_away_time(struct net_device *dev, char *command) in wl_android_set_scan_home_away_time() argument
2593 if (sscanf(command, "%*s %d", &time) != 1) { in wl_android_set_scan_home_away_time()
2611 int wl_android_get_scan_nprobes(struct net_device *dev, char *command, int total_len) in wl_android_get_scan_nprobes() argument
2624 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETSCANNPROBES, num); in wl_android_get_scan_nprobes()
2629 int wl_android_set_scan_nprobes(struct net_device *dev, char *command) in wl_android_set_scan_nprobes() argument
2634 if (sscanf(command, "%*s %d", &num) != 1) { in wl_android_set_scan_nprobes()
2650 int 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
2670 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETDFSSCANMODE, mode); in wl_android_get_scan_dfs_channel_mode()
2675 int wl_android_set_scan_dfs_channel_mode(struct net_device *dev, char *command) in wl_android_set_scan_dfs_channel_mode() argument
2681 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_scan_dfs_channel_mode()
2710 wl_android_set_join_prefer(struct net_device *dev, char *command) in wl_android_set_join_prefer() argument
2724 pcmd = command + strlen(CMD_SETJOINPREFER) + 1; in wl_android_set_join_prefer()
2767 int wl_android_send_action_frame(struct net_device *dev, char *command, int total_len) in wl_android_send_action_frame() argument
2784 params = (android_wifi_af_params_t *)(command + strlen(CMD_SENDACTIONFRAME) + 1); in wl_android_send_action_frame()
2867 int wl_android_reassoc(struct net_device *dev, char *command, int total_len) in wl_android_reassoc() argument
2881 params = (android_wifi_reassoc_params_t *)(command + strlen(CMD_REASSOC) + 1); in wl_android_reassoc()
2925 int wl_android_get_wes_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_wes_mode() argument
2932 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETWESMODE, mode); in wl_android_get_wes_mode()
2937 int wl_android_set_wes_mode(struct net_device *dev, char *command) in wl_android_set_wes_mode() argument
2945 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_wes_mode()
2976 int wl_android_get_okc_mode(struct net_device *dev, char *command, int total_len) in wl_android_get_okc_mode() argument
2988 bytes_written = snprintf(command, total_len, "%s %d", CMD_GETOKCMODE, mode); in wl_android_get_okc_mode()
2993 int wl_android_set_okc_mode(struct net_device *dev, char *command) in wl_android_set_okc_mode() argument
2998 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_okc_mode()
3013 wl_android_set_pmk(struct net_device *dev, char *command, int total_len) in wl_android_set_pmk() argument
3036 memcpy((char *)pmk, command + strlen("SET_PMK "), 32); in wl_android_set_pmk()
3052 wl_android_okc_enable(struct net_device *dev, char *command) in wl_android_okc_enable() argument
3057 okc_enable = command[strlen(CMD_OKC_ENABLE) + 1] - '0'; in wl_android_okc_enable()
3070 wl_android_restore_scan_params(struct net_device *dev, char *command, int total_len) in wl_android_restore_scan_params() argument
3077 while (strlen(restore_params[cnt].command) > 0 && restore_params[cnt].cmd_handler) { in wl_android_restore_scan_params()
3078 sprintf(restore_command, "%s %d", restore_params[cnt].command, in wl_android_restore_scan_params()
3086 DHD_ERROR(("Unknown restore command handler\n")); in wl_android_restore_scan_params()
3148 char *command, int total_len) in wl_android_sroam_set_info() argument
3222 wl_android_sroam_get_info(struct net_device *dev, char *command, int total_len) in wl_android_sroam_get_info() argument
3252 bytes_written = snprintf(command, total_len, in wl_android_sroam_get_info()
3259 WL_DBG(("%s", command)); in wl_android_sroam_get_info()
3304 wl_android_set_disconnect_ies(struct net_device *dev, char *command) in wl_android_set_disconnect_ies() argument
3319 cmd_len = strlen(command); in wl_android_set_disconnect_ies()
3327 WL_DBG(("cmd recv = %s\n", command)); in wl_android_set_disconnect_ies()
3330 get_int_bytes(&command[cmd_prefix_len + 2], &ie_len, 1); in wl_android_set_disconnect_ies()
3340 if (command[total_len] != '\0' || (cmd_len != total_len)) { in wl_android_set_disconnect_ies()
3341 WL_ERR(("command recv not matching with len, command = %s" in wl_android_set_disconnect_ies()
3342 "total_len = %d, cmd_len = %d\n", command, total_len, cmd_len)); in wl_android_set_disconnect_ies()
3356 get_int_bytes(&command[cmd_prefix_len], disassoc_ie, ie_len); in wl_android_set_disconnect_ies()
3371 wl_android_set_fcc_pwr_limit_2g(struct net_device *dev, char *command) in wl_android_set_fcc_pwr_limit_2g() argument
3376 sscanf(command+sizeof("SET_FCC_CHANNEL"), "%d", &enable); in wl_android_set_fcc_pwr_limit_2g()
3397 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
3411 bytes_written = snprintf(command, total_len, "%s %d", CMD_GET_FCC_PWR_LIMIT_2G, enable); in wl_android_get_fcc_pwr_limit_2g()
3418 wl_cfg80211_get_sta_info(struct net_device *dev, char* command, int total_len) in wl_cfg80211_get_sta_info() argument
3421 char *pcmd = command; in wl_cfg80211_get_sta_info()
3440 WL_DBG(("%s\n", command)); in wl_cfg80211_get_sta_info()
3512 WL_ERR(("Command ERR\n")); in wl_cfg80211_get_sta_info()
3522 bytes_written = snprintf(command, total_len, in wl_cfg80211_get_sta_info()
3532 WL_ERR_KERN(("command %s\n", command)); in wl_cfg80211_get_sta_info()
3537 bytes_written = snprintf(command, total_len, in wl_cfg80211_get_sta_info()
3541 WL_DBG(("%s", command)); in wl_cfg80211_get_sta_info()
3553 static int wl_android_wbtext(struct net_device *dev, char *command, int total_len) in wl_android_wbtext() argument
3560 argc = sscanf(command+sizeof(CMD_WBTEXT_ENABLE), "%d", &data); in wl_android_wbtext()
3568 bytes_written = snprintf(command, total_len, "WBTEXT %s\n", in wl_android_wbtext()
3606 char *command, int total_len) in wl_cfg80211_wbtext_btm_timer_threshold() argument
3611 argc = sscanf(command, CMD_WBTEXT_BTM_TIMER_THRESHOLD " %d\n", &data); in wl_cfg80211_wbtext_btm_timer_threshold()
3618 bytes_written = snprintf(command, total_len, "%d\n", data); in wl_cfg80211_wbtext_btm_timer_threshold()
3631 char *command, int total_len) in wl_cfg80211_wbtext_btm_delta() argument
3636 argc = sscanf(command, CMD_WBTEXT_BTM_DELTA " %d\n", &data); in wl_cfg80211_wbtext_btm_delta()
3643 bytes_written = snprintf(command, total_len, "%d\n", data); in wl_cfg80211_wbtext_btm_delta()
3656 char *command, int total_len) in wl_cfg80211_wbtext_estm_enable() argument
3661 char *pcmd = command; in wl_cfg80211_wbtext_estm_enable()
3672 bytes_written = snprintf(command, total_len, "wbtext_estm_enable %d\n", in wl_cfg80211_wbtext_estm_enable()
3697 wls_parse_batching_cmd(struct net_device *dev, char *command, int total_len) in wls_parse_batching_cmd() argument
3705 DHD_PNO(("wls_parse_batching_cmd: command=%s, len=%d\n", command, total_len)); in wls_parse_batching_cmd()
3708 pos = command + strlen(CMD_WLS_BATCHING) + 1; in wls_parse_batching_cmd()
3796 bzero(command, total_len); in wls_parse_batching_cmd()
3797 err = snprintf(command, total_len, "%d", err); in wls_parse_batching_cmd()
3800 err = dhd_dev_pno_get_for_batch(dev, command, total_len); in wls_parse_batching_cmd()
3804 err = strlen(command); in wls_parse_batching_cmd()
3811 bzero(command, total_len); in wls_parse_batching_cmd()
3812 err = snprintf(command, total_len, "OK"); in wls_parse_batching_cmd()
3815 DHD_ERROR(("wls_parse_batching_cmd : unknown command\n")); in wls_parse_batching_cmd()
3823 static int wl_android_set_pno_setup(struct net_device *dev, char *command, int total_len) in wl_android_set_pno_setup() argument
3855 DHD_PNO(("wl_android_set_pno_setup: command=%s, len=%d\n", command, total_len)); in wl_android_set_pno_setup()
3862 memcpy(command, pno_in_example, sizeof(pno_in_example)); in wl_android_set_pno_setup()
3865 str_ptr = command + strlen(CMD_PNOSETUP_SET); in wl_android_set_pno_setup()
3915 DHD_ERROR(("wl_android_set_pno_setup: get wrong TLV command\n")); in wl_android_set_pno_setup()
3927 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
3944 return (snprintf(command, total_len, MACF, ETHERP_TO_MACF(&p2pdev_addr))); in wl_android_get_p2p_dev_addr()
4197 static int wl_android_set_fwpath(struct net_device *net, char *command, int total_len) in wl_android_set_fwpath() argument
4199 if ((strlen(command) - strlen(CMD_SETFWPATH)) > MOD_PARAM_PATHLEN) in wl_android_set_fwpath()
4201 return dhd_net_set_fw_path(net, command + strlen(CMD_SETFWPATH) + 1); in wl_android_set_fwpath()
4260 wl_android_get_connection_stats(struct net_device *dev, char *command, int total_len) in wl_android_get_connection_stats() argument
4292 output = (struct connection_stats *)command; in wl_android_get_connection_stats()
4410 wl_android_process_natoe_cmd(struct net_device *dev, char *command, int total_len) in wl_android_process_natoe_cmd() argument
4413 char *pcmd = command; in wl_android_process_natoe_cmd()
4428 /* get the natoe command name to str */ in wl_android_process_natoe_cmd()
4435 cmd_info.command = command; in wl_android_process_natoe_cmd()
4451 uint8 *command = cmd_info->command; in wlu_natoe_set_vars_cbfn() local
4461 bytes_written = snprintf(command, total_len, "natoe: %s\n", in wlu_natoe_set_vars_cbfn()
4474 bytes_written = snprintf(command, total_len, "sta ip: %s\n", buf); in wlu_natoe_set_vars_cbfn()
4476 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
4479 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
4482 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
4485 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
4488 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
4499 bytes_written = snprintf(command, total_len, "starting port num: %d\n", in wlu_natoe_set_vars_cbfn()
4501 bytes_written += snprintf(command + bytes_written, total_len, in wlu_natoe_set_vars_cbfn()
4511 bytes_written = snprintf(command, total_len, "%s\n", stats_dump); in wlu_natoe_set_vars_cbfn()
4518 bytes_written = snprintf(command, total_len, "natoe max tbl entries: %d\n", in wlu_natoe_set_vars_cbfn()
4559 DHD_ERROR(("wl_natoe_get_ioctl: get command failed code %d\n", res)); in wl_natoe_get_ioctl()
4568 char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_enable() argument
4572 char *pcmd = command; in wl_android_natoe_subcmd_enable()
4644 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_config_ips() argument
4649 char *pcmd = command; in wl_android_natoe_subcmd_config_ips()
4764 const wl_natoe_sub_cmd_t *cmd, char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_config_ports() argument
4769 char *pcmd = command; in wl_android_natoe_subcmd_config_ports()
4864 char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_dbg_stats() argument
4868 char *pcmd = command; in wl_android_natoe_subcmd_dbg_stats()
4941 char *command, wl_natoe_cmd_info_t *cmd_info) in wl_android_natoe_subcmd_tbl_cnt() argument
4945 char *pcmd = command; in wl_android_natoe_subcmd_tbl_cnt()
5020 wl_android_process_mbo_cmd(struct net_device *dev, char *command, int total_len) in wl_android_process_mbo_cmd() argument
5023 char *pcmd = command; in wl_android_process_mbo_cmd()
5038 /* get the mbo command name to str */ in wl_android_process_mbo_cmd()
5045 cmd_info.command = command; in wl_android_process_mbo_cmd()
5089 uint8 *command = cmd_info->command; in wl_android_mbo_resp_parse_cbfn() local
5102 bytes_written = snprintf(command, total_len, "cell_data_cap: %u\n", *data); in wl_android_mbo_resp_parse_cbfn()
5114 char *command, wl_drv_cmd_info_t *cmd_info) in wl_android_mbo_subcmd_cell_data_cap() argument
5120 char *pcmd = command; in wl_android_mbo_subcmd_cell_data_cap()
5236 uint8 *command = cmd_info->command + cmd_info->bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn() local
5249 bytes_written = snprintf(command, total_len, "%u:", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
5251 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
5257 bytes_written = snprintf(command, total_len, "%u:", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
5259 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
5265 bytes_written = snprintf(command, total_len, "%u:", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
5267 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
5273 bytes_written = snprintf(command, total_len, "%u ", *data); in wl_android_mbo_non_pref_chan_parse_cbfn()
5275 command += bytes_written; in wl_android_mbo_non_pref_chan_parse_cbfn()
5288 const wl_drv_sub_cmd_t *cmd, char *command, in wl_android_mbo_subcmd_non_pref_chan() argument
5295 char *pcmd = command; in wl_android_mbo_subcmd_non_pref_chan()
5365 WL_ERR(("Unknown command %s\n", str)); in wl_android_mbo_subcmd_non_pref_chan()
5499 char* command, int total_len) in wl_android_set_auto_channel() argument
5512 WL_INFORM(("Command: %s len:%d \n", cmd_str, (int)strlen(cmd_str))); in wl_android_set_auto_channel()
5684 ret = snprintf(command, total_len, "%d", channel); in wl_android_set_auto_channel()
5685 WL_INFORM(("command result is %s \n", command)); in wl_android_set_auto_channel()
5931 static int wl_android_set_rmc_event(struct net_device *dev, char *command) in wl_android_set_rmc_event() argument
5936 if (sscanf(command, CMD_SET_RMC_EVENT " %d", &pid) <= 0) { in wl_android_set_rmc_event()
5937 WL_ERR(("Failed to get Parameter from : %s\n", command)); in wl_android_set_rmc_event()
5950 int wl_android_get_singlecore_scan(struct net_device *dev, char *command, int total_len) in wl_android_get_singlecore_scan() argument
5964 bytes_written = snprintf(command, total_len, "%s %d", CMD_GET_SCSCAN, mode); in wl_android_get_singlecore_scan()
5969 int wl_android_set_singlecore_scan(struct net_device *dev, char *command) in wl_android_set_singlecore_scan() argument
5974 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_singlecore_scan()
6018 wl_android_get_tx_power(struct net_device *dev, char *command, int total_len) in wl_android_get_tx_power() argument
6030 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_tx_power()
6101 wl_android_set_tid(struct net_device *dev, char* command) in wl_android_set_tid() argument
6104 char *pos = command; in wl_android_set_tid()
6116 WL_DBG(("%s: command[%s]\n", __FUNCTION__, command)); in wl_android_set_tid()
6118 /* drop command */ in wl_android_set_tid()
6172 wl_android_get_tid(struct net_device *dev, char* command, int total_len) in wl_android_get_tid() argument
6182 bytes_written = snprintf(command, total_len, "mode %d uid %d tid %d", in wl_android_get_tid()
6185 WL_DBG(("%s: command results %s\n", __FUNCTION__, command)); in wl_android_get_tid()
6192 int wl_android_set_roam_mode(struct net_device *dev, char *command) in wl_android_set_roam_mode() argument
6197 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_roam_mode()
6215 int wl_android_set_ibss_beacon_ouidata(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_beacon_ouidata() argument
6240 pcmd = command + strlen(CMD_SETIBSSBEACONOUIDATA) + 1; in wl_android_set_ibss_beacon_ouidata()
6269 /* Copy the vndr_ie SET command ("add"/"del") to the buffer */ in wl_android_set_ibss_beacon_ouidata()
6328 wl_android_set_roampref(struct net_device *dev, char *command, int total_len) in wl_android_set_roampref() argument
6345 pcmd = command + strlen(CMD_SET_ROAMPREF) + 1; in wl_android_set_roampref()
6366 /* Save the AKM suites passed in the command */ in wl_android_set_roampref()
6386 /* Save the cipher suites passed in the command */ in wl_android_set_roampref()
6549 wl_android_set_miracast(struct net_device *dev, char *command) in wl_android_set_miracast() argument
6555 if (sscanf(command, "%*s %d", &mode) != 1) { in wl_android_set_miracast()
6745 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
6753 if (sscanf(command, CMD_SETIBSSTXFAILEVENT " %d %d", &retry, &pid) <= 0) { in wl_android_set_ibss_txfail_event()
6754 WL_ERR(("Failed to get Parameter from : %s\n", command)); in wl_android_set_ibss_txfail_event()
6781 static int wl_android_get_ibss_peer_info(struct net_device *dev, char *command, in wl_android_get_ibss_peer_info() argument
6792 char *str = command; in wl_android_get_ibss_peer_info()
6799 WL_ERR(("invalid command\n")); in wl_android_get_ibss_peer_info()
6831 bytes_written += snprintf(&command[bytes_written], total_len, "%u ", in wl_android_get_ibss_peer_info()
6847 bytes_written += snprintf(&command[bytes_written], in wl_android_get_ibss_peer_info()
6869 WL_DBG(("command(%u):%s\n", total_len, command)); in wl_android_get_ibss_peer_info()
6876 int wl_android_set_ibss_routetable(struct net_device *dev, char *command) in wl_android_set_ibss_routetable() argument
6879 char *pcmd = command; in wl_android_set_ibss_routetable()
6909 /* drop command */ in wl_android_set_ibss_routetable()
6974 wl_android_set_ibss_ampdu(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_ampdu() argument
6976 char *pcmd = command; in wl_android_set_ibss_ampdu()
6988 WL_DBG(("set ibss ampdu:%s\n", command)); in wl_android_set_ibss_ampdu()
6995 /* drop command */ in wl_android_set_ibss_ampdu()
7022 int wl_android_set_ibss_antenna(struct net_device *dev, char *command, int total_len) in wl_android_set_ibss_antenna() argument
7024 char *pcmd = command; in wl_android_set_ibss_antenna()
7029 WL_DBG(("set ibss antenna:%s\n", command)); in wl_android_set_ibss_antenna()
7032 /* drop command */ in wl_android_set_ibss_antenna()
7102 static int wl_android_get_wfdie_resp(struct net_device *dev, char *command, int total_len) in wl_android_get_wfdie_resp() argument
7116 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_wfdie_resp()
7160 wl_android_set_rps_cpus(struct net_device *dev, char *command) in wl_android_set_rps_cpus() argument
7164 enable = command[strlen(CMD_RPSMODE) + 1] - '0'; in wl_android_set_rps_cpus()
7185 static int wl_android_get_link_status(struct net_device *dev, char *command, in wl_android_get_link_status() argument
7307 bytes_written = snprintf(command, total_len, "%s %d", CMD_GET_LINK_STATUS, result); in wl_android_get_link_status()
7532 wl_android_get_rssi_per_ant(struct net_device *dev, char *command, int total_len) in wl_android_get_rssi_per_ant() argument
7548 pos = command; in wl_android_get_rssi_per_ant()
7550 /* drop command */ in wl_android_get_rssi_per_ant()
7589 bytes_written = snprintf(command, total_len, "%s MIMO %d", in wl_android_get_rssi_per_ant()
7593 bytes_written = snprintf(command, total_len, "%s PER_ANT ", CMD_GET_RSSI_PER_ANT); in wl_android_get_rssi_per_ant()
7596 bytes_written = snprintf(command, total_len, "%d ", in wl_android_get_rssi_per_ant()
7605 wl_android_set_rssi_logging(struct net_device *dev, char *command, int total_len) in wl_android_set_rssi_logging() argument
7615 pos = command; in wl_android_set_rssi_logging()
7617 /* drop command */ in wl_android_set_rssi_logging()
7658 wl_android_get_rssi_logging(struct net_device *dev, char *command, int total_len) in wl_android_get_rssi_logging() argument
7677 bytes_written = snprintf(command, total_len, in wl_android_get_rssi_logging()
7684 bytes_written = snprintf(command, total_len, "%s PASS\n", in wl_android_get_rssi_logging()
7694 bytes_written = snprintf(command, total_len, "%s FAIL - RSSI Threshold " in wl_android_get_rssi_logging()
7701 bytes_written = snprintf(command, total_len, "%s BUSY - NOT READY\n", in wl_android_get_rssi_logging()
7743 wl_android_get_lqcm_report(struct net_device *dev, char *command, int total_len) in wl_android_get_lqcm_report() argument
7760 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_lqcm_report()
7768 wl_android_get_snr(struct net_device *dev, char *command, int total_len) in wl_android_get_snr() argument
7780 bytes_written = snprintf(command, total_len, "snr %d", snr); in wl_android_get_snr()
7781 DHD_INFO(("wl_android_get_snr: command result is %s\n", command)); in wl_android_get_snr()
7787 wl_android_set_ap_beaconrate(struct net_device *dev, char *command) in wl_android_set_ap_beaconrate() argument
7797 pos = command; in wl_android_set_ap_beaconrate()
7799 /* drop command */ in wl_android_set_ap_beaconrate()
7824 int wl_android_get_ap_basicrate(struct net_device *dev, char *command, int total_len) in wl_android_get_ap_basicrate() argument
7832 pos = command; in wl_android_get_ap_basicrate()
7834 /* drop command */ in wl_android_get_ap_basicrate()
7845 bytes_written = wl_get_ap_basic_rate(dev, command, ifname, total_len); in wl_android_get_ap_basicrate()
7857 wl_android_get_ap_rps(struct net_device *dev, char *command, int total_len) in wl_android_get_ap_rps() argument
7866 pos = command; in wl_android_get_ap_rps()
7868 /* drop command */ in wl_android_get_ap_rps()
7880 bytes_written = wl_get_ap_rps(dev, command, name, total_len); in wl_android_get_ap_rps()
7891 wl_android_set_ap_rps(struct net_device *dev, char *command, int total_len) in wl_android_set_ap_rps() argument
7902 pos = command; in wl_android_set_ap_rps()
7904 /* drop command */ in wl_android_set_ap_rps()
7931 wl_android_set_ap_rps_params(struct net_device *dev, char *command, int total_len) in wl_android_set_ap_rps_params() argument
7943 pos = command; in wl_android_set_ap_rps_params()
7945 /* drop command */ in wl_android_set_ap_rps_params()
8054 wl_android_pktlog_filter_enable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_enable() argument
8074 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_enable()
8085 wl_android_pktlog_filter_disable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_disable() argument
8105 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_disable()
8116 wl_android_pktlog_filter_pattern_enable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_pattern_enable() argument
8136 command + strlen(CMD_PKTLOG_FILTER_PATTERN_ENABLE) + 1, TRUE); in wl_android_pktlog_filter_pattern_enable()
8139 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_pattern_enable()
8150 wl_android_pktlog_filter_pattern_disable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_pattern_disable() argument
8170 command + strlen(CMD_PKTLOG_FILTER_PATTERN_DISABLE) + 1, FALSE); in wl_android_pktlog_filter_pattern_disable()
8173 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_pattern_disable()
8184 wl_android_pktlog_filter_add(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_add() argument
8203 err = dhd_pktlog_filter_add(filter, command + strlen(CMD_PKTLOG_FILTER_ADD) + 1); in wl_android_pktlog_filter_add()
8206 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_add()
8217 wl_android_pktlog_filter_del(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_del() argument
8238 err = dhd_pktlog_filter_del(filter, command + strlen(CMD_PKTLOG_FILTER_DEL) + 1); in wl_android_pktlog_filter_del()
8240 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_del()
8251 wl_android_pktlog_filter_info(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_info() argument
8269 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_filter_info()
8280 wl_android_pktlog_start(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_start() argument
8299 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_start()
8307 wl_android_pktlog_stop(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_stop() argument
8326 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_stop()
8334 wl_android_pktlog_filter_exist(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_filter_exist() argument
8354 exist = dhd_pktlog_filter_existed(filter, command + strlen(CMD_PKTLOG_FILTER_EXIST) + 1, in wl_android_pktlog_filter_exist()
8358 bytes_written = snprintf(command, total_len, "TRUE"); in wl_android_pktlog_filter_exist()
8361 bytes_written = snprintf(command, total_len, "FALSE"); in wl_android_pktlog_filter_exist()
8369 wl_android_pktlog_minmize_enable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_minmize_enable() argument
8388 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_minmize_enable()
8396 wl_android_pktlog_minmize_disable(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_minmize_disable() argument
8415 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_minmize_disable()
8423 wl_android_pktlog_change_size(struct net_device *dev, char *command, int total_len) in wl_android_pktlog_change_size() argument
8440 size = bcm_strtoul(command + strlen(CMD_PKTLOG_CHANGE_SIZE) + 1, NULL, 0); in wl_android_pktlog_change_size()
8449 bytes_written = snprintf(command, total_len, "OK"); in wl_android_pktlog_change_size()
8469 wl_android_ewp_filter(struct net_device *dev, char *command, uint32 tot_len) in wl_android_ewp_filter() argument
8475 unsigned char *index_str = (unsigned char *)(command + in wl_android_ewp_filter()
8481 if (!dhdp || !command) { in wl_android_ewp_filter()
8487 if (strlen(command) > strlen(CMD_EWP_FILTER) + 1) { in wl_android_ewp_filter()
8493 &command[bytes_written], tot_len - bytes_written, index1, index2, index3); in wl_android_ewp_filter()
8499 &command[bytes_written], tot_len - bytes_written, type); in wl_android_ewp_filter()
8511 char *command = NULL; in wl_android_priv_cmd() local
8543 command = (char *)MALLOC(cfg->osh, (buf_size + 1)); in wl_android_priv_cmd()
8544 if (!command) { in wl_android_priv_cmd()
8549 if (copy_from_user(command, priv_cmd.buf, priv_cmd.total_len)) { in wl_android_priv_cmd()
8553 command[priv_cmd.total_len] = '\0'; in wl_android_priv_cmd()
8556 command, ifr->ifr_name)); in wl_android_priv_cmd()
8558 bytes_written = wl_handle_private_cmd(net, command, priv_cmd.total_len); in wl_android_priv_cmd()
8561 command[0] = '\0'; in wl_android_priv_cmd()
8571 if (copy_to_user(priv_cmd.buf, command, bytes_written)) { in wl_android_priv_cmd()
8593 MFREE(cfg->osh, command, (buf_size + 1)); in wl_android_priv_cmd()
8625 struct net_device *dev, char *command, int total_len) in wl_android_get_adps_mode() argument
8665 bytes_written = snprintf(command, total_len, "%s %d", in wl_android_get_adps_mode()
8775 * command error in _wl_android_bcnrecv_start()
8908 WL_ERR(("Failed to process the start command, error:%d\n", err)); in wl_android_bcnrecv_config()
9047 wl_android_get_channel_util(struct net_device *ndev, char *command, int total_len) in wl_android_get_channel_util() argument
9064 bytes_written = snprintf(command, total_len, "CU %hhu", in wl_android_get_channel_util()
9073 wl_handle_private_cmd(struct net_device *net, char *command, u32 cmd_len) in wl_handle_private_cmd() argument
9081 if (strnicmp(command, CMD_START, strlen(CMD_START)) == 0) { in wl_handle_private_cmd()
9082 DHD_INFO(("wl_handle_private_cmd, Received regular START command\n")); in wl_handle_private_cmd()
9093 else if (strnicmp(command, CMD_SETFWPATH, strlen(CMD_SETFWPATH)) == 0) { in wl_handle_private_cmd()
9094 bytes_written = wl_android_set_fwpath(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9099 command)); in wl_handle_private_cmd()
9103 if (strnicmp(command, CMD_STOP, strlen(CMD_STOP)) == 0) { in wl_handle_private_cmd()
9115 else if (strnicmp(command, CMD_SCAN_ACTIVE, strlen(CMD_SCAN_ACTIVE)) == 0) { in wl_handle_private_cmd()
9116 wl_cfg80211_set_passive_scan(net, command); in wl_handle_private_cmd()
9118 else if (strnicmp(command, CMD_SCAN_PASSIVE, strlen(CMD_SCAN_PASSIVE)) == 0) { in wl_handle_private_cmd()
9119 wl_cfg80211_set_passive_scan(net, command); in wl_handle_private_cmd()
9121 else if (strnicmp(command, CMD_RSSI, strlen(CMD_RSSI)) == 0) { in wl_handle_private_cmd()
9122 bytes_written = wl_android_get_rssi(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9124 else if (strnicmp(command, CMD_LINKSPEED, strlen(CMD_LINKSPEED)) == 0) { in wl_handle_private_cmd()
9125 bytes_written = wl_android_get_link_speed(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9129 else if (strnicmp(command, CMD_RXFILTER_START, strlen(CMD_RXFILTER_START)) == 0) { in wl_handle_private_cmd()
9132 else if (strnicmp(command, CMD_RXFILTER_STOP, strlen(CMD_RXFILTER_STOP)) == 0) { in wl_handle_private_cmd()
9135 else if (strnicmp(command, CMD_RXFILTER_ADD, strlen(CMD_RXFILTER_ADD)) == 0) { in wl_handle_private_cmd()
9136 int filter_num = *(command + strlen(CMD_RXFILTER_ADD) + 1) - '0'; in wl_handle_private_cmd()
9139 else if (strnicmp(command, CMD_RXFILTER_REMOVE, strlen(CMD_RXFILTER_REMOVE)) == 0) { in wl_handle_private_cmd()
9140 int filter_num = *(command + strlen(CMD_RXFILTER_REMOVE) + 1) - '0'; in wl_handle_private_cmd()
9144 else if (strnicmp(command, CMD_BTCOEXSCAN_START, strlen(CMD_BTCOEXSCAN_START)) == 0) { in wl_handle_private_cmd()
9147 else if (strnicmp(command, CMD_BTCOEXSCAN_STOP, strlen(CMD_BTCOEXSCAN_STOP)) == 0) { in wl_handle_private_cmd()
9150 else if (strnicmp(command, CMD_BTCOEXMODE, strlen(CMD_BTCOEXMODE)) == 0) { in wl_handle_private_cmd()
9153 bytes_written = wl_cfg80211_set_btcoex_dhcp(net, dhdp, command); in wl_handle_private_cmd()
9156 uint mode = *(command + strlen(CMD_BTCOEXMODE) + 1) - '0'; in wl_handle_private_cmd()
9165 else if (strnicmp(command, CMD_SETSUSPENDOPT, strlen(CMD_SETSUSPENDOPT)) == 0) { in wl_handle_private_cmd()
9166 bytes_written = wl_android_set_suspendopt(net, command); in wl_handle_private_cmd()
9168 else if (strnicmp(command, CMD_SETSUSPENDMODE, strlen(CMD_SETSUSPENDMODE)) == 0) { in wl_handle_private_cmd()
9169 bytes_written = wl_android_set_suspendmode(net, command); in wl_handle_private_cmd()
9171 else if (strnicmp(command, CMD_SETDTIM_IN_SUSPEND, strlen(CMD_SETDTIM_IN_SUSPEND)) == 0) { in wl_handle_private_cmd()
9172 bytes_written = wl_android_set_bcn_li_dtim(net, command); in wl_handle_private_cmd()
9174 else if (strnicmp(command, CMD_MAXDTIM_IN_SUSPEND, strlen(CMD_MAXDTIM_IN_SUSPEND)) == 0) { in wl_handle_private_cmd()
9175 bytes_written = wl_android_set_max_dtim(net, command); in wl_handle_private_cmd()
9178 else if (strnicmp(command, CMD_DISDTIM_IN_SUSPEND, strlen(CMD_DISDTIM_IN_SUSPEND)) == 0) { in wl_handle_private_cmd()
9179 bytes_written = wl_android_set_disable_dtim_in_suspend(net, command); in wl_handle_private_cmd()
9182 else if (strnicmp(command, CMD_SETBAND, strlen(CMD_SETBAND)) == 0) { in wl_handle_private_cmd()
9183 bytes_written = wl_android_set_band(net, command); in wl_handle_private_cmd()
9185 else if (strnicmp(command, CMD_GETBAND, strlen(CMD_GETBAND)) == 0) { in wl_handle_private_cmd()
9186 bytes_written = wl_android_get_band(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9188 else if (strnicmp(command, CMD_ADDIE, strlen(CMD_ADDIE)) == 0) { in wl_handle_private_cmd()
9189 bytes_written = wl_android_add_vendor_ie(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9191 else if (strnicmp(command, CMD_DELIE, strlen(CMD_DELIE)) == 0) { in wl_handle_private_cmd()
9192 bytes_written = wl_android_del_vendor_ie(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9197 else if (strnicmp(command, CMD_COUNTRY, strlen(CMD_COUNTRY)) == 0) { in wl_handle_private_cmd()
9203 char *country_code = command + strlen(CMD_COUNTRY) + 1; in wl_handle_private_cmd()
9241 else if (strnicmp(command, CMD_CHANNELS_IN_CC, strlen(CMD_CHANNELS_IN_CC)) == 0) { in wl_handle_private_cmd()
9242 bytes_written = wl_android_get_channel_list(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9243 } else if (strnicmp(command, CMD_SET_CSA, strlen(CMD_SET_CSA)) == 0) { in wl_handle_private_cmd()
9244 bytes_written = wl_android_set_csa(net, command); in wl_handle_private_cmd()
9245 } else if (strnicmp(command, CMD_CHANSPEC, strlen(CMD_CHANSPEC)) == 0) { in wl_handle_private_cmd()
9246 bytes_written = wl_android_get_chanspec(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9249 else if (strnicmp(command, CMD_DATARATE, strlen(CMD_DATARATE)) == 0) { in wl_handle_private_cmd()
9250 bytes_written = wl_android_get_datarate(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9251 } else if (strnicmp(command, CMD_80211_MODE, strlen(CMD_80211_MODE)) == 0) { in wl_handle_private_cmd()
9252 bytes_written = wl_android_get_80211_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9253 } else if (strnicmp(command, CMD_ASSOC_CLIENTS, strlen(CMD_ASSOC_CLIENTS)) == 0) { in wl_handle_private_cmd()
9254 bytes_written = wl_android_get_assoclist(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9257 else if (strnicmp(command, CMD_RSDB_MODE, strlen(CMD_RSDB_MODE)) == 0) { in wl_handle_private_cmd()
9258 bytes_written = wl_android_get_rsdb_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9263 else if (strnicmp(command, CMD_ROAMTRIGGER_SET, in wl_handle_private_cmd()
9265 bytes_written = wl_android_set_roam_trigger(net, command); in wl_handle_private_cmd()
9266 } else if (strnicmp(command, CMD_ROAMTRIGGER_GET, in wl_handle_private_cmd()
9268 bytes_written = wl_android_get_roam_trigger(net, command, in wl_handle_private_cmd()
9270 } else if (strnicmp(command, CMD_ROAMDELTA_SET, in wl_handle_private_cmd()
9272 bytes_written = wl_android_set_roam_delta(net, command); in wl_handle_private_cmd()
9273 } else if (strnicmp(command, CMD_ROAMDELTA_GET, in wl_handle_private_cmd()
9275 bytes_written = wl_android_get_roam_delta(net, command, in wl_handle_private_cmd()
9277 } else if (strnicmp(command, CMD_ROAMSCANPERIOD_SET, in wl_handle_private_cmd()
9279 bytes_written = wl_android_set_roam_scan_period(net, command); in wl_handle_private_cmd()
9280 } else if (strnicmp(command, CMD_ROAMSCANPERIOD_GET, in wl_handle_private_cmd()
9282 bytes_written = wl_android_get_roam_scan_period(net, command, in wl_handle_private_cmd()
9284 } else if (strnicmp(command, CMD_FULLROAMSCANPERIOD_SET, in wl_handle_private_cmd()
9286 bytes_written = wl_android_set_full_roam_scan_period(net, command, in wl_handle_private_cmd()
9288 } else if (strnicmp(command, CMD_FULLROAMSCANPERIOD_GET, in wl_handle_private_cmd()
9290 bytes_written = wl_android_get_full_roam_scan_period(net, command, in wl_handle_private_cmd()
9294 else if (strnicmp(command, CMD_COUNTRYREV_SET, in wl_handle_private_cmd()
9296 bytes_written = wl_android_set_country_rev(net, command); in wl_handle_private_cmd()
9305 } else if (strnicmp(command, CMD_COUNTRYREV_GET, in wl_handle_private_cmd()
9307 bytes_written = wl_android_get_country_rev(net, command, in wl_handle_private_cmd()
9313 else if (strnicmp(command, CMD_GETROAMSCANCONTROL, strlen(CMD_GETROAMSCANCONTROL)) == 0) { in wl_handle_private_cmd()
9314 bytes_written = wl_android_get_roam_scan_control(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9316 else if (strnicmp(command, CMD_SETROAMSCANCONTROL, strlen(CMD_SETROAMSCANCONTROL)) == 0) { in wl_handle_private_cmd()
9317 bytes_written = wl_android_set_roam_scan_control(net, command); in wl_handle_private_cmd()
9319 else if (strnicmp(command, CMD_GETROAMSCANCHANNELS, strlen(CMD_GETROAMSCANCHANNELS)) == 0) { in wl_handle_private_cmd()
9320 bytes_written = wl_android_get_roam_scan_channels(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9322 else if (strnicmp(command, CMD_SETROAMSCANCHANNELS, strlen(CMD_SETROAMSCANCHANNELS)) == 0) { in wl_handle_private_cmd()
9323 bytes_written = wl_android_set_roam_scan_channels(net, command); in wl_handle_private_cmd()
9325 else if (strnicmp(command, CMD_SENDACTIONFRAME, strlen(CMD_SENDACTIONFRAME)) == 0) { in wl_handle_private_cmd()
9326 bytes_written = wl_android_send_action_frame(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9328 else if (strnicmp(command, CMD_REASSOC, strlen(CMD_REASSOC)) == 0) { in wl_handle_private_cmd()
9329 bytes_written = wl_android_reassoc(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9331 else if (strnicmp(command, CMD_GETSCANCHANNELTIME, strlen(CMD_GETSCANCHANNELTIME)) == 0) { in wl_handle_private_cmd()
9332 bytes_written = wl_android_get_scan_channel_time(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9334 else if (strnicmp(command, CMD_SETSCANCHANNELTIME, strlen(CMD_SETSCANCHANNELTIME)) == 0) { in wl_handle_private_cmd()
9335 bytes_written = wl_android_set_scan_channel_time(net, command); in wl_handle_private_cmd()
9337 else if (strnicmp(command, CMD_GETSCANUNASSOCTIME, strlen(CMD_GETSCANUNASSOCTIME)) == 0) { in wl_handle_private_cmd()
9338 bytes_written = wl_android_get_scan_unassoc_time(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9340 else if (strnicmp(command, CMD_SETSCANUNASSOCTIME, strlen(CMD_SETSCANUNASSOCTIME)) == 0) { in wl_handle_private_cmd()
9341 bytes_written = wl_android_set_scan_unassoc_time(net, command); in wl_handle_private_cmd()
9343 else if (strnicmp(command, CMD_GETSCANPASSIVETIME, strlen(CMD_GETSCANPASSIVETIME)) == 0) { in wl_handle_private_cmd()
9344 bytes_written = wl_android_get_scan_passive_time(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9346 else if (strnicmp(command, CMD_SETSCANPASSIVETIME, strlen(CMD_SETSCANPASSIVETIME)) == 0) { in wl_handle_private_cmd()
9347 bytes_written = wl_android_set_scan_passive_time(net, command); in wl_handle_private_cmd()
9349 else if (strnicmp(command, CMD_GETSCANHOMETIME, strlen(CMD_GETSCANHOMETIME)) == 0) { in wl_handle_private_cmd()
9350 bytes_written = wl_android_get_scan_home_time(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9352 else if (strnicmp(command, CMD_SETSCANHOMETIME, strlen(CMD_SETSCANHOMETIME)) == 0) { in wl_handle_private_cmd()
9353 bytes_written = wl_android_set_scan_home_time(net, command); in wl_handle_private_cmd()
9355 else if (strnicmp(command, CMD_GETSCANHOMEAWAYTIME, strlen(CMD_GETSCANHOMEAWAYTIME)) == 0) { in wl_handle_private_cmd()
9356 bytes_written = wl_android_get_scan_home_away_time(net, command, in wl_handle_private_cmd()
9359 else if (strnicmp(command, CMD_SETSCANHOMEAWAYTIME, strlen(CMD_SETSCANHOMEAWAYTIME)) == 0) { in wl_handle_private_cmd()
9360 bytes_written = wl_android_set_scan_home_away_time(net, command); in wl_handle_private_cmd()
9362 else if (strnicmp(command, CMD_GETSCANNPROBES, strlen(CMD_GETSCANNPROBES)) == 0) { in wl_handle_private_cmd()
9363 bytes_written = wl_android_get_scan_nprobes(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9365 else if (strnicmp(command, CMD_SETSCANNPROBES, strlen(CMD_SETSCANNPROBES)) == 0) { in wl_handle_private_cmd()
9366 bytes_written = wl_android_set_scan_nprobes(net, command); in wl_handle_private_cmd()
9368 else if (strnicmp(command, CMD_GETDFSSCANMODE, strlen(CMD_GETDFSSCANMODE)) == 0) { in wl_handle_private_cmd()
9369 bytes_written = wl_android_get_scan_dfs_channel_mode(net, command, in wl_handle_private_cmd()
9372 else if (strnicmp(command, CMD_SETDFSSCANMODE, strlen(CMD_SETDFSSCANMODE)) == 0) { in wl_handle_private_cmd()
9373 bytes_written = wl_android_set_scan_dfs_channel_mode(net, command); in wl_handle_private_cmd()
9375 else if (strnicmp(command, CMD_SETJOINPREFER, strlen(CMD_SETJOINPREFER)) == 0) { in wl_handle_private_cmd()
9376 bytes_written = wl_android_set_join_prefer(net, command); in wl_handle_private_cmd()
9378 else if (strnicmp(command, CMD_GETWESMODE, strlen(CMD_GETWESMODE)) == 0) { in wl_handle_private_cmd()
9379 bytes_written = wl_android_get_wes_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9381 else if (strnicmp(command, CMD_SETWESMODE, strlen(CMD_SETWESMODE)) == 0) { in wl_handle_private_cmd()
9382 bytes_written = wl_android_set_wes_mode(net, command); in wl_handle_private_cmd()
9384 else if (strnicmp(command, CMD_GETOKCMODE, strlen(CMD_GETOKCMODE)) == 0) { in wl_handle_private_cmd()
9385 bytes_written = wl_android_get_okc_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9387 else if (strnicmp(command, CMD_SETOKCMODE, strlen(CMD_SETOKCMODE)) == 0) { in wl_handle_private_cmd()
9388 bytes_written = wl_android_set_okc_mode(net, command); in wl_handle_private_cmd()
9390 else if (strnicmp(command, CMD_OKC_SET_PMK, strlen(CMD_OKC_SET_PMK)) == 0) { in wl_handle_private_cmd()
9391 bytes_written = wl_android_set_pmk(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9393 else if (strnicmp(command, CMD_OKC_ENABLE, strlen(CMD_OKC_ENABLE)) == 0) { in wl_handle_private_cmd()
9394 bytes_written = wl_android_okc_enable(net, command); in wl_handle_private_cmd()
9398 else if (strnicmp(command, CMD_RESTORE_SCAN_PARAMS, strlen(CMD_RESTORE_SCAN_PARAMS)) == 0) { in wl_handle_private_cmd()
9399 bytes_written = wl_android_restore_scan_params(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9403 else if (strnicmp(command, CMD_TDLS_RESET, strlen(CMD_TDLS_RESET)) == 0) { in wl_handle_private_cmd()
9408 else if (strnicmp(command, CMD_SROAM_TURN_ON, strlen(CMD_SROAM_TURN_ON)) == 0) { in wl_handle_private_cmd()
9410 bytes_written = wl_android_sroam_turn_on(net, (const char*)command+skip); in wl_handle_private_cmd()
9412 else if (strnicmp(command, CMD_SROAM_SET_INFO, strlen(CMD_SROAM_SET_INFO)) == 0) { in wl_handle_private_cmd()
9413 char *data = (command + strlen(CMD_SROAM_SET_INFO) + 1); in wl_handle_private_cmd()
9414 bytes_written = wl_android_sroam_set_info(net, data, command, priv_cmd.total_len); in wl_handle_private_cmd()
9416 else if (strnicmp(command, CMD_SROAM_GET_INFO, strlen(CMD_SROAM_GET_INFO)) == 0) { in wl_handle_private_cmd()
9417 bytes_written = wl_android_sroam_get_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9420 else if (strnicmp(command, CMD_SET_DISCONNECT_IES, strlen(CMD_SET_DISCONNECT_IES)) == 0) { in wl_handle_private_cmd()
9421 bytes_written = wl_android_set_disconnect_ies(net, command); in wl_handle_private_cmd()
9426 else if (strnicmp(command, CMD_PNOSSIDCLR_SET, strlen(CMD_PNOSSIDCLR_SET)) == 0) { in wl_handle_private_cmd()
9430 else if (strnicmp(command, CMD_PNOSETUP_SET, strlen(CMD_PNOSETUP_SET)) == 0) { in wl_handle_private_cmd()
9431 bytes_written = wl_android_set_pno_setup(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9434 else if (strnicmp(command, CMD_PNOENABLE_SET, strlen(CMD_PNOENABLE_SET)) == 0) { in wl_handle_private_cmd()
9435 int enable = *(command + strlen(CMD_PNOENABLE_SET) + 1) - '0'; in wl_handle_private_cmd()
9438 else if (strnicmp(command, CMD_WLS_BATCHING, strlen(CMD_WLS_BATCHING)) == 0) { in wl_handle_private_cmd()
9439 bytes_written = wls_parse_batching_cmd(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9442 else if (strnicmp(command, CMD_P2P_DEV_ADDR, strlen(CMD_P2P_DEV_ADDR)) == 0) { in wl_handle_private_cmd()
9443 bytes_written = wl_android_get_p2p_dev_addr(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9445 else if (strnicmp(command, CMD_P2P_SET_NOA, strlen(CMD_P2P_SET_NOA)) == 0) { in wl_handle_private_cmd()
9447 bytes_written = wl_cfg80211_set_p2p_noa(net, command + skip, in wl_handle_private_cmd()
9451 else if (strnicmp(command, CMD_P2P_LISTEN_OFFLOAD, strlen(CMD_P2P_LISTEN_OFFLOAD)) == 0) { in wl_handle_private_cmd()
9452 u8 *sub_command = strchr(command, ' '); in wl_handle_private_cmd()
9453 bytes_written = wl_cfg80211_p2plo_offload(net, command, sub_command, in wl_handle_private_cmd()
9458 else if (strnicmp(command, CMD_P2P_GET_NOA, strlen(CMD_P2P_GET_NOA)) == 0) { in wl_handle_private_cmd()
9459 bytes_written = wl_cfg80211_get_p2p_noa(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9462 else if (strnicmp(command, CMD_P2P_SET_PS, strlen(CMD_P2P_SET_PS)) == 0) { in wl_handle_private_cmd()
9464 bytes_written = wl_cfg80211_set_p2p_ps(net, command + skip, in wl_handle_private_cmd()
9467 else if (strnicmp(command, CMD_P2P_ECSA, strlen(CMD_P2P_ECSA)) == 0) { in wl_handle_private_cmd()
9469 bytes_written = wl_cfg80211_set_p2p_ecsa(net, command + skip, in wl_handle_private_cmd()
9472 else if (strnicmp(command, CMD_P2P_INC_BW, strlen(CMD_P2P_INC_BW)) == 0) { in wl_handle_private_cmd()
9475 command + skip, priv_cmd.total_len - skip); in wl_handle_private_cmd()
9478 else if (strnicmp(command, CMD_SET_AP_WPS_P2P_IE, in wl_handle_private_cmd()
9481 bytes_written = wl_cfg80211_set_wps_p2p_ie(net, command + skip, in wl_handle_private_cmd()
9482 priv_cmd.total_len - skip, *(command + skip - 2) - '0'); in wl_handle_private_cmd()
9485 else if (strnicmp(command, CMD_GET_FTKEY, strlen(CMD_GET_FTKEY)) == 0) { in wl_handle_private_cmd()
9486 bytes_written = wl_cfg80211_get_fbt_key(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9491 else if (strnicmp(command, CMD_GET_BEST_CHANNELS, in wl_handle_private_cmd()
9493 bytes_written = wl_cfg80211_get_best_channels(net, command, in wl_handle_private_cmd()
9498 else if (strnicmp(command, CMD_SET_HAPD_AUTO_CHANNEL, in wl_handle_private_cmd()
9501 bytes_written = wl_android_set_auto_channel(net, (const char*)command+skip, command, in wl_handle_private_cmd()
9508 else if (strnicmp(command, CMD_AMPDU_MPDU, strlen(CMD_AMPDU_MPDU)) == 0) { in wl_handle_private_cmd()
9510 bytes_written = wl_android_set_ampdu_mpdu(net, (const char*)command+skip); in wl_handle_private_cmd()
9514 else if (strnicmp(command, CMD_HAPD_STA_DISASSOC, in wl_handle_private_cmd()
9517 wl_android_sta_diassoc(net, (const char*)command+skip); in wl_handle_private_cmd()
9521 else if (strnicmp(command, CMD_HAPD_LPC_ENABLED, in wl_handle_private_cmd()
9524 wl_android_set_lpc(net, (const char*)command+skip); in wl_handle_private_cmd()
9528 else if (strnicmp(command, CMD_TEST_FORCE_HANG, in wl_handle_private_cmd()
9531 net_os_send_hang_message_reason(net, (const char*)command+skip); in wl_handle_private_cmd()
9534 else if (strnicmp(command, CMD_CHANGE_RL, strlen(CMD_CHANGE_RL)) == 0) in wl_handle_private_cmd()
9536 else if (strnicmp(command, CMD_RESTORE_RL, strlen(CMD_RESTORE_RL)) == 0) in wl_handle_private_cmd()
9539 else if (strnicmp(command, CMD_LTECX_SET, strlen(CMD_LTECX_SET)) == 0) { in wl_handle_private_cmd()
9541 bytes_written = wl_android_set_ltecx(net, (const char*)command+skip); in wl_handle_private_cmd()
9545 else if (strnicmp(command, CMD_SET_RMC_ENABLE, strlen(CMD_SET_RMC_ENABLE)) == 0) { in wl_handle_private_cmd()
9546 int rmc_enable = *(command + strlen(CMD_SET_RMC_ENABLE) + 1) - '0'; in wl_handle_private_cmd()
9549 else if (strnicmp(command, CMD_SET_RMC_TXRATE, strlen(CMD_SET_RMC_TXRATE)) == 0) { in wl_handle_private_cmd()
9551 sscanf(command, "%*s %10d", &rmc_txrate); in wl_handle_private_cmd()
9554 else if (strnicmp(command, CMD_SET_RMC_ACTPERIOD, strlen(CMD_SET_RMC_ACTPERIOD)) == 0) { in wl_handle_private_cmd()
9556 sscanf(command, "%*s %10d", &actperiod); in wl_handle_private_cmd()
9559 else if (strnicmp(command, CMD_SET_RMC_IDLEPERIOD, strlen(CMD_SET_RMC_IDLEPERIOD)) == 0) { in wl_handle_private_cmd()
9561 sscanf(command, "%*s %10d", &acktimeout); in wl_handle_private_cmd()
9565 else if (strnicmp(command, CMD_SET_RMC_LEADER, strlen(CMD_SET_RMC_LEADER)) == 0) { in wl_handle_private_cmd()
9567 bytes_written = wl_android_rmc_set_leader(net, (const char*)command+skip); in wl_handle_private_cmd()
9569 else if (strnicmp(command, CMD_SET_RMC_EVENT, in wl_handle_private_cmd()
9571 bytes_written = wl_android_set_rmc_event(net, command); in wl_handle_private_cmd()
9574 else if (strnicmp(command, CMD_GET_SCSCAN, strlen(CMD_GET_SCSCAN)) == 0) { in wl_handle_private_cmd()
9575 bytes_written = wl_android_get_singlecore_scan(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9577 else if (strnicmp(command, CMD_SET_SCSCAN, strlen(CMD_SET_SCSCAN)) == 0) { in wl_handle_private_cmd()
9578 bytes_written = wl_android_set_singlecore_scan(net, command); in wl_handle_private_cmd()
9581 else if (strnicmp(command, CMD_TEST_SET_TX_POWER, in wl_handle_private_cmd()
9584 wl_android_set_tx_power(net, (const char*)command+skip); in wl_handle_private_cmd()
9586 else if (strnicmp(command, CMD_TEST_GET_TX_POWER, in wl_handle_private_cmd()
9588 wl_android_get_tx_power(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9591 else if (strnicmp(command, CMD_SARLIMIT_TX_CONTROL, in wl_handle_private_cmd()
9594 bytes_written = wl_android_set_sarlimit_txctrl(net, (const char*)command+skip); in wl_handle_private_cmd()
9597 else if (strnicmp(command, CMD_SET_TID, strlen(CMD_SET_TID)) == 0) { in wl_handle_private_cmd()
9598 bytes_written = wl_android_set_tid(net, command); in wl_handle_private_cmd()
9600 else if (strnicmp(command, CMD_GET_TID, strlen(CMD_GET_TID)) == 0) { in wl_handle_private_cmd()
9601 bytes_written = wl_android_get_tid(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9606 else if (strnicmp(command, CMD_SET_HAPD_MAX_NUM_STA, in wl_handle_private_cmd()
9609 wl_android_set_max_num_sta(net, (const char*)command+skip); in wl_handle_private_cmd()
9611 else if (strnicmp(command, CMD_SET_HAPD_SSID, in wl_handle_private_cmd()
9614 wl_android_set_ssid(net, (const char*)command+skip); in wl_handle_private_cmd()
9616 else if (strnicmp(command, CMD_SET_HAPD_HIDE_SSID, in wl_handle_private_cmd()
9619 wl_android_set_hide_ssid(net, (const char*)(command+skip)); in wl_handle_private_cmd()
9623 else if (strnicmp(command, CMD_HAPD_MAC_FILTER, strlen(CMD_HAPD_MAC_FILTER)) == 0) { in wl_handle_private_cmd()
9625 wl_android_set_mac_address_filter(net, command+skip); in wl_handle_private_cmd()
9628 else if (strnicmp(command, CMD_SETROAMMODE, strlen(CMD_SETROAMMODE)) == 0) in wl_handle_private_cmd()
9629 bytes_written = wl_android_set_roam_mode(net, command); in wl_handle_private_cmd()
9631 else if (strnicmp(command, CMD_SET_ROAMPREF, strlen(CMD_SET_ROAMPREF)) == 0) { in wl_handle_private_cmd()
9632 bytes_written = wl_android_set_roampref(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9635 else if (strnicmp(command, CMD_MIRACAST, strlen(CMD_MIRACAST)) == 0) in wl_handle_private_cmd()
9636 bytes_written = wl_android_set_miracast(net, command); in wl_handle_private_cmd()
9637 else if (strnicmp(command, CMD_SETIBSSBEACONOUIDATA, strlen(CMD_SETIBSSBEACONOUIDATA)) == 0) in wl_handle_private_cmd()
9639 command, priv_cmd.total_len); in wl_handle_private_cmd()
9641 else if (strnicmp(command, CMD_SETIBSSTXFAILEVENT, in wl_handle_private_cmd()
9643 bytes_written = wl_android_set_ibss_txfail_event(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9644 else if (strnicmp(command, CMD_GET_IBSS_PEER_INFO_ALL, in wl_handle_private_cmd()
9646 bytes_written = wl_android_get_ibss_peer_info(net, command, priv_cmd.total_len, in wl_handle_private_cmd()
9648 else if (strnicmp(command, CMD_GET_IBSS_PEER_INFO, in wl_handle_private_cmd()
9650 bytes_written = wl_android_get_ibss_peer_info(net, command, priv_cmd.total_len, in wl_handle_private_cmd()
9652 else if (strnicmp(command, CMD_SETIBSSROUTETABLE, in wl_handle_private_cmd()
9654 bytes_written = wl_android_set_ibss_routetable(net, command); in wl_handle_private_cmd()
9655 else if (strnicmp(command, CMD_SETIBSSAMPDU, strlen(CMD_SETIBSSAMPDU)) == 0) in wl_handle_private_cmd()
9656 bytes_written = wl_android_set_ibss_ampdu(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9657 else if (strnicmp(command, CMD_SETIBSSANTENNAMODE, strlen(CMD_SETIBSSANTENNAMODE)) == 0) in wl_handle_private_cmd()
9658 bytes_written = wl_android_set_ibss_antenna(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9660 else if (strnicmp(command, CMD_KEEP_ALIVE, strlen(CMD_KEEP_ALIVE)) == 0) { in wl_handle_private_cmd()
9662 bytes_written = wl_keep_alive_set(net, command + skip); in wl_handle_private_cmd()
9664 else if (strnicmp(command, CMD_ROAM_OFFLOAD, strlen(CMD_ROAM_OFFLOAD)) == 0) { in wl_handle_private_cmd()
9665 int enable = *(command + strlen(CMD_ROAM_OFFLOAD) + 1) - '0'; in wl_handle_private_cmd()
9668 else if (strnicmp(command, CMD_INTERFACE_CREATE, strlen(CMD_INTERFACE_CREATE)) == 0) { in wl_handle_private_cmd()
9669 char *name = (command + strlen(CMD_INTERFACE_CREATE) +1); in wl_handle_private_cmd()
9679 else if (strnicmp(command, CMD_INTERFACE_DELETE, strlen(CMD_INTERFACE_DELETE)) == 0) { in wl_handle_private_cmd()
9680 char *name = (command + strlen(CMD_INTERFACE_DELETE) +1); in wl_handle_private_cmd()
9684 else if (strnicmp(command, CMD_GET_LINK_STATUS, strlen(CMD_GET_LINK_STATUS)) == 0) { in wl_handle_private_cmd()
9685 bytes_written = wl_android_get_link_status(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9688 else if (strnicmp(command, CMD_P2P_SET_WFDIE_RESP, in wl_handle_private_cmd()
9690 int mode = *(command + strlen(CMD_P2P_SET_WFDIE_RESP) + 1) - '0'; in wl_handle_private_cmd()
9692 } else if (strnicmp(command, CMD_P2P_GET_WFDIE_RESP, in wl_handle_private_cmd()
9694 bytes_written = wl_android_get_wfdie_resp(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9697 else if (strnicmp(command, CMD_DFS_AP_MOVE, strlen(CMD_DFS_AP_MOVE)) == 0) { in wl_handle_private_cmd()
9698 char *data = (command + strlen(CMD_DFS_AP_MOVE) +1); in wl_handle_private_cmd()
9699 bytes_written = wl_cfg80211_dfs_ap_move(net, data, command, priv_cmd.total_len); in wl_handle_private_cmd()
9702 else if (strnicmp(command, CMD_WBTEXT_ENABLE, strlen(CMD_WBTEXT_ENABLE)) == 0) { in wl_handle_private_cmd()
9703 bytes_written = wl_android_wbtext(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9705 else if (strnicmp(command, CMD_WBTEXT_PROFILE_CONFIG, in wl_handle_private_cmd()
9707 char *data = (command + strlen(CMD_WBTEXT_PROFILE_CONFIG) + 1); in wl_handle_private_cmd()
9708 bytes_written = wl_cfg80211_wbtext_config(net, data, command, priv_cmd.total_len); in wl_handle_private_cmd()
9710 else if (strnicmp(command, CMD_WBTEXT_WEIGHT_CONFIG, in wl_handle_private_cmd()
9712 char *data = (command + strlen(CMD_WBTEXT_WEIGHT_CONFIG) + 1); in wl_handle_private_cmd()
9714 command, priv_cmd.total_len); in wl_handle_private_cmd()
9716 else if (strnicmp(command, CMD_WBTEXT_TABLE_CONFIG, in wl_handle_private_cmd()
9718 char *data = (command + strlen(CMD_WBTEXT_TABLE_CONFIG) + 1); in wl_handle_private_cmd()
9720 command, priv_cmd.total_len); in wl_handle_private_cmd()
9722 else if (strnicmp(command, CMD_WBTEXT_DELTA_CONFIG, in wl_handle_private_cmd()
9724 char *data = (command + strlen(CMD_WBTEXT_DELTA_CONFIG) + 1); in wl_handle_private_cmd()
9726 command, priv_cmd.total_len); in wl_handle_private_cmd()
9728 else if (strnicmp(command, CMD_WBTEXT_BTM_TIMER_THRESHOLD, in wl_handle_private_cmd()
9730 bytes_written = wl_cfg80211_wbtext_btm_timer_threshold(net, command, in wl_handle_private_cmd()
9733 else if (strnicmp(command, CMD_WBTEXT_BTM_DELTA, in wl_handle_private_cmd()
9735 bytes_written = wl_cfg80211_wbtext_btm_delta(net, command, in wl_handle_private_cmd()
9738 else if (strnicmp(command, CMD_WBTEXT_ESTM_ENABLE, in wl_handle_private_cmd()
9740 bytes_written = wl_cfg80211_wbtext_estm_enable(net, command, in wl_handle_private_cmd()
9745 else if (strnicmp(command, CMD_RPSMODE, strlen(CMD_RPSMODE)) == 0) { in wl_handle_private_cmd()
9746 bytes_written = wl_android_set_rps_cpus(net, command); in wl_handle_private_cmd()
9750 else if (strnicmp(command, CMD_ADD_WFDS_HASH, strlen(CMD_ADD_WFDS_HASH)) == 0) { in wl_handle_private_cmd()
9751 bytes_written = wl_android_set_wfds_hash(net, command, 1); in wl_handle_private_cmd()
9753 else if (strnicmp(command, CMD_DEL_WFDS_HASH, strlen(CMD_DEL_WFDS_HASH)) == 0) { in wl_handle_private_cmd()
9754 bytes_written = wl_android_set_wfds_hash(net, command, 0); in wl_handle_private_cmd()
9758 else if (strnicmp(command, CMD_TBOW_TEARDOWN, strlen(CMD_TBOW_TEARDOWN)) == 0) { in wl_handle_private_cmd()
9764 else if (strnicmp(command, CMD_GET_FCC_PWR_LIMIT_2G, in wl_handle_private_cmd()
9766 bytes_written = wl_android_get_fcc_pwr_limit_2g(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9768 else if (strnicmp(command, CMD_SET_FCC_PWR_LIMIT_2G, in wl_handle_private_cmd()
9770 bytes_written = wl_android_set_fcc_pwr_limit_2g(net, command); in wl_handle_private_cmd()
9773 else if (strnicmp(command, CMD_GET_STA_INFO, strlen(CMD_GET_STA_INFO)) == 0) { in wl_handle_private_cmd()
9774 bytes_written = wl_cfg80211_get_sta_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9777 else if (strnicmp(command, CMD_MURX_BFE_CAP, in wl_handle_private_cmd()
9780 uint val = *(command + strlen(CMD_MURX_BFE_CAP) + 1) - '0'; in wl_handle_private_cmd()
9787 else if (strnicmp(command, CMD_GET_AP_BASICRATE, strlen(CMD_GET_AP_BASICRATE)) == 0) { in wl_handle_private_cmd()
9788 bytes_written = wl_android_get_ap_basicrate(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9790 else if (strnicmp(command, CMD_SET_AP_BEACONRATE, strlen(CMD_SET_AP_BEACONRATE)) == 0) { in wl_handle_private_cmd()
9791 bytes_written = wl_android_set_ap_beaconrate(net, command); in wl_handle_private_cmd()
9795 else if (strnicmp(command, CMD_SET_AP_RPS_PARAMS, strlen(CMD_SET_AP_RPS_PARAMS)) == 0) { in wl_handle_private_cmd()
9796 bytes_written = wl_android_set_ap_rps_params(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9798 else if (strnicmp(command, CMD_SET_AP_RPS, strlen(CMD_SET_AP_RPS)) == 0) { in wl_handle_private_cmd()
9799 bytes_written = wl_android_set_ap_rps(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9801 else if (strnicmp(command, CMD_GET_AP_RPS, strlen(CMD_GET_AP_RPS)) == 0) { in wl_handle_private_cmd()
9802 bytes_written = wl_android_get_ap_rps(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9806 else if (strnicmp(command, CMD_SET_RSSI_LOGGING, strlen(CMD_SET_RSSI_LOGGING)) == 0) { in wl_handle_private_cmd()
9807 bytes_written = wl_android_set_rssi_logging(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9809 else if (strnicmp(command, CMD_GET_RSSI_LOGGING, strlen(CMD_GET_RSSI_LOGGING)) == 0) { in wl_handle_private_cmd()
9810 bytes_written = wl_android_get_rssi_logging(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9812 else if (strnicmp(command, CMD_GET_RSSI_PER_ANT, strlen(CMD_GET_RSSI_PER_ANT)) == 0) { in wl_handle_private_cmd()
9813 bytes_written = wl_android_get_rssi_per_ant(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9817 else if (strnicmp(command, CMD_GET_BSS_INFO, strlen(CMD_GET_BSS_INFO)) == 0) { in wl_handle_private_cmd()
9818 bytes_written = wl_cfg80211_get_bss_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9820 else if (strnicmp(command, CMD_GET_ASSOC_REJECT_INFO, strlen(CMD_GET_ASSOC_REJECT_INFO)) in wl_handle_private_cmd()
9822 bytes_written = wl_cfg80211_get_connect_failed_status(net, command, in wl_handle_private_cmd()
9827 else if (strnicmp(command, ENABLE_RANDOM_MAC, strlen(ENABLE_RANDOM_MAC)) == 0) { in wl_handle_private_cmd()
9829 } else if (strnicmp(command, DISABLE_RANDOM_MAC, strlen(DISABLE_RANDOM_MAC)) == 0) { in wl_handle_private_cmd()
9834 else if (strnicmp(command, CMD_BANDSTEER, strlen(CMD_BANDSTEER)) == 0) { in wl_handle_private_cmd()
9835 bytes_written = wl_android_set_bandsteer(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9837 else if (strnicmp(command, CMD_BANDSTEER_TRIGGER, strlen(CMD_BANDSTEER_TRIGGER)) == 0) { in wl_handle_private_cmd()
9838 uint8 *p = command + strlen(CMD_BANDSTEER_TRIGGER)+1; in wl_handle_private_cmd()
9848 command)); in wl_handle_private_cmd()
9855 else if (strnicmp(command, CMD_AP_HOGSQS, strlen(CMD_AP_HOGSQS)) == 0) { in wl_handle_private_cmd()
9856 bytes_written = wl_android_hogsqs(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9860 else if (strnicmp(command, CMD_NATOE, strlen(CMD_NATOE)) == 0) { in wl_handle_private_cmd()
9861 bytes_written = wl_android_process_natoe_cmd(net, command, in wl_handle_private_cmd()
9866 else if (strnicmp(command, CMD_GET_CONNECTION_STATS, in wl_handle_private_cmd()
9868 bytes_written = wl_android_get_connection_stats(net, command, in wl_handle_private_cmd()
9873 else if (strnicmp(command, CMD_NEW_DEBUG_PRINT_DUMP, in wl_handle_private_cmd()
9876 /* check whether it has more command */ in wl_handle_private_cmd()
9877 if (strnicmp(command + strlen(CMD_NEW_DEBUG_PRINT_DUMP), " ", 1) == 0) { in wl_handle_private_cmd()
9878 /* compare unwanted/disconnected command */ in wl_handle_private_cmd()
9879 if (strnicmp(command + strlen(CMD_NEW_DEBUG_PRINT_DUMP) + 1, in wl_handle_private_cmd()
9882 } else if (strnicmp(command + strlen(CMD_NEW_DEBUG_PRINT_DUMP) + 1, in wl_handle_private_cmd()
9894 else if (strnicmp(command, CMD_DUMP_STATUS_LOG, strlen(CMD_DUMP_STATUS_LOG)) == 0) { in wl_handle_private_cmd()
9897 else if (strnicmp(command, CMD_QUERY_STATUS_LOG, strlen(CMD_QUERY_STATUS_LOG)) == 0) { in wl_handle_private_cmd()
9899 bytes_written = dhd_statlog_query(dhdp, command, priv_cmd.total_len); in wl_handle_private_cmd()
9903 else if (strnicmp(command, CMD_PCIE_IRQ_CORE, strlen(CMD_PCIE_IRQ_CORE)) == 0) { in wl_handle_private_cmd()
9904 int affinity_cmd = *(command + strlen(CMD_PCIE_IRQ_CORE) + 1) - '0'; in wl_handle_private_cmd()
9909 else if (strnicmp(command, CMD_MAKE_HANG, strlen(CMD_MAKE_HANG)) == 0) { in wl_handle_private_cmd()
9911 wl_android_make_hang_with_reason(net, (const char*)command+skip); in wl_handle_private_cmd()
9915 else if (strnicmp(command, CMD_SET_LQCM_ENABLE, strlen(CMD_SET_LQCM_ENABLE)) == 0) { in wl_handle_private_cmd()
9916 int lqcm_enable = *(command + strlen(CMD_SET_LQCM_ENABLE) + 1) - '0'; in wl_handle_private_cmd()
9919 else if (strnicmp(command, CMD_GET_LQCM_REPORT, in wl_handle_private_cmd()
9921 bytes_written = wl_android_get_lqcm_report(net, command, in wl_handle_private_cmd()
9925 else if (strnicmp(command, CMD_GET_SNR, strlen(CMD_GET_SNR)) == 0) { in wl_handle_private_cmd()
9926 bytes_written = wl_android_get_snr(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9929 else if (strnicmp(command, CMD_SET_ADPS, strlen(CMD_SET_ADPS)) == 0) { in wl_handle_private_cmd()
9931 bytes_written = wl_android_set_adps_mode(net, (const char*)command+skip); in wl_handle_private_cmd()
9933 else if (strnicmp(command, CMD_GET_ADPS, strlen(CMD_GET_ADPS)) == 0) { in wl_handle_private_cmd()
9934 bytes_written = wl_android_get_adps_mode(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9938 else if (strnicmp(command, CMD_PKTLOG_FILTER_ENABLE, in wl_handle_private_cmd()
9940 bytes_written = wl_android_pktlog_filter_enable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9942 else if (strnicmp(command, CMD_PKTLOG_FILTER_DISABLE, in wl_handle_private_cmd()
9944 bytes_written = wl_android_pktlog_filter_disable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9946 else if (strnicmp(command, CMD_PKTLOG_FILTER_PATTERN_ENABLE, in wl_handle_private_cmd()
9949 wl_android_pktlog_filter_pattern_enable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9951 else if (strnicmp(command, CMD_PKTLOG_FILTER_PATTERN_DISABLE, in wl_handle_private_cmd()
9954 wl_android_pktlog_filter_pattern_disable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9956 else if (strnicmp(command, CMD_PKTLOG_FILTER_ADD, strlen(CMD_PKTLOG_FILTER_ADD)) == 0) { in wl_handle_private_cmd()
9957 bytes_written = wl_android_pktlog_filter_add(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9959 else if (strnicmp(command, CMD_PKTLOG_FILTER_DEL, strlen(CMD_PKTLOG_FILTER_DEL)) == 0) { in wl_handle_private_cmd()
9960 bytes_written = wl_android_pktlog_filter_del(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9962 else if (strnicmp(command, CMD_PKTLOG_FILTER_INFO, strlen(CMD_PKTLOG_FILTER_INFO)) == 0) { in wl_handle_private_cmd()
9963 bytes_written = wl_android_pktlog_filter_info(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9965 else if (strnicmp(command, CMD_PKTLOG_START, strlen(CMD_PKTLOG_START)) == 0) { in wl_handle_private_cmd()
9966 bytes_written = wl_android_pktlog_start(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9968 else if (strnicmp(command, CMD_PKTLOG_STOP, strlen(CMD_PKTLOG_STOP)) == 0) { in wl_handle_private_cmd()
9969 bytes_written = wl_android_pktlog_stop(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9971 else if (strnicmp(command, CMD_PKTLOG_FILTER_EXIST, strlen(CMD_PKTLOG_FILTER_EXIST)) == 0) { in wl_handle_private_cmd()
9972 bytes_written = wl_android_pktlog_filter_exist(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9974 else if (strnicmp(command, CMD_PKTLOG_MINMIZE_ENABLE, in wl_handle_private_cmd()
9976 bytes_written = wl_android_pktlog_minmize_enable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9978 else if (strnicmp(command, CMD_PKTLOG_MINMIZE_DISABLE, in wl_handle_private_cmd()
9980 bytes_written = wl_android_pktlog_minmize_disable(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9982 else if (strnicmp(command, CMD_PKTLOG_CHANGE_SIZE, in wl_handle_private_cmd()
9984 bytes_written = wl_android_pktlog_change_size(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9987 else if (strnicmp(command, CMD_DEBUG_VERBOSE, strlen(CMD_DEBUG_VERBOSE)) == 0) { in wl_handle_private_cmd()
9988 int verbose_level = *(command + strlen(CMD_DEBUG_VERBOSE) + 1) - '0'; in wl_handle_private_cmd()
9992 else if (strnicmp(command, CMD_EWP_FILTER, in wl_handle_private_cmd()
9994 bytes_written = wl_android_ewp_filter(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
9998 else if (strnicmp(command, CMD_BEACON_RECV, in wl_handle_private_cmd()
10000 char *data = (command + strlen(CMD_BEACON_RECV) + 1); in wl_handle_private_cmd()
10006 else if (strnicmp(command, CMD_MBO, strlen(CMD_MBO)) == 0) { in wl_handle_private_cmd()
10007 bytes_written = wl_android_process_mbo_cmd(net, command, in wl_handle_private_cmd()
10012 else if (strnicmp(command, CMD_CAC_TSPEC, in wl_handle_private_cmd()
10014 char *data = (command + strlen(CMD_CAC_TSPEC) + 1); in wl_handle_private_cmd()
10020 else if (strnicmp(command, CMD_GET_CHAN_UTIL, in wl_handle_private_cmd()
10023 command, priv_cmd.total_len); in wl_handle_private_cmd()
10026 else if (strnicmp(command, CMD_CHANNEL_WIDTH, strlen(CMD_CHANNEL_WIDTH)) == 0) { in wl_handle_private_cmd()
10027 bytes_written = wl_android_set_channel_width(net, command, priv_cmd.total_len); in wl_handle_private_cmd()
10029 else if (strnicmp(command, CMD_TRANSITION_DISABLE, strlen(CMD_TRANSITION_DISABLE)) == 0) { in wl_handle_private_cmd()
10030 int transition_disabled = *(command + strlen(CMD_TRANSITION_DISABLE) + 1) - '0'; in wl_handle_private_cmd()
10034 DHD_ERROR(("Unknown PRIVATE command %s - ignored\n", command)); in wl_handle_private_cmd()
10035 bytes_written = scnprintf(command, sizeof("FAIL"), "FAIL"); in wl_handle_private_cmd()
10835 wl_cfg80211_wbtext_config(struct net_device *ndev, char *data, char *command, int total_len) in wl_cfg80211_wbtext_config() argument
10865 err = snprintf(command, total_len, "Missing band\n"); in wl_cfg80211_wbtext_config()
10937 bytes_written += snprintf(command+bytes_written, in wl_cfg80211_wbtext_config()
10945 bytes_written += snprintf(command+bytes_written, in wl_cfg80211_wbtext_config()
11028 char *command, int total_len) in wl_cfg80211_wbtext_weight_config() argument
11057 WL_ERR(("%s: Command usage error\n", __func__)); in wl_cfg80211_wbtext_weight_config()
11068 WL_ERR(("%s: Command usage error\n", __func__)); in wl_cfg80211_wbtext_weight_config()
11085 bytes_written = snprintf(command, total_len, "%s %s weight = %d\n", in wl_cfg80211_wbtext_weight_config()
11092 /* if weight is non integer returns command usage error */ in wl_cfg80211_wbtext_weight_config()
11095 WL_ERR(("%s: Command usage error", __func__)); in wl_cfg80211_wbtext_weight_config()
11116 char *command, int total_len) in wl_cfg80211_wbtext_table_config() argument
11150 WL_ERR(("%s: Command usage error\n", __func__)); in wl_cfg80211_wbtext_table_config()
11164 WL_ERR(("%s: Command usage, Wrong band\n", __func__)); in wl_cfg80211_wbtext_table_config()
11179 bytes_written += snprintf(command + bytes_written, total_len - bytes_written, in wl_cfg80211_wbtext_table_config()
11181 bytes_written += snprintf(command + bytes_written, total_len - bytes_written, in wl_cfg80211_wbtext_table_config()
11184 bytes_written += snprintf(command + bytes_written, total_len - bytes_written, in wl_cfg80211_wbtext_table_config()
11187 bytes_written += snprintf(command + bytes_written, in wl_cfg80211_wbtext_table_config()
11213 WL_ERR(("%s:Command usage:less no of args\n", __func__)); in wl_cfg80211_wbtext_table_config()
11233 wl_cfg80211_wbtext_delta_config(struct net_device *ndev, char *data, char *command, int total_len) in wl_cfg80211_wbtext_delta_config() argument
11265 /* if delta is non integer returns command usage error */ in wl_cfg80211_wbtext_delta_config()
11268 WL_ERR(("%s: Command usage error", __func__)); in wl_cfg80211_wbtext_delta_config()
11295 bytes_written = snprintf(command, total_len, in wl_cfg80211_wbtext_delta_config()