Lines Matching full:conf
224 uint chip = dhd->conf->chip; in dhd_conf_legacy_chip_check()
246 uint chip = dhd->conf->chip; in dhd_conf_new_chip_check()
267 uint chip = dhd->conf->chip; in dhd_conf_extsae_chip()
287 uint chip = dhd->conf->chip; in dhd_conf_disable_slpauto()
388 memcpy(&dhd->conf->otp_mac, tuple->data, ETHER_ADDR_LEN); in dhd_conf_get_otp()
394 if (len <= sizeof(dhd->conf->module_name) - 1) { in dhd_conf_get_otp()
395 strncpy(dhd->conf->module_name, tuple->data, len); in dhd_conf_get_otp()
396 CONFIG_MSG("module_name=%s\n", dhd->conf->module_name); in dhd_conf_get_otp()
399 len, (int)sizeof(dhd->conf->module_name) - 1); in dhd_conf_get_otp()
407 if (!memcmp(ðer_null, &dhd->conf->otp_mac, ETHER_ADDR_LEN)) { in dhd_conf_get_otp()
413 memcpy(&dhd->conf->otp_mac, ptr+3, ETHER_ADDR_LEN); in dhd_conf_get_otp()
449 uint8 *mac = (uint8 *)&dhd->conf->otp_mac; in dhd_conf_set_fw_name_by_mac()
457 mac_list = dhd->conf->fw_by_mac.m_mac_list_head; in dhd_conf_set_fw_name_by_mac()
458 fw_num = dhd->conf->fw_by_mac.count; in dhd_conf_set_fw_name_by_mac()
529 uint8 *mac = (uint8 *)&dhd->conf->otp_mac; in dhd_conf_set_nv_name_by_mac()
536 mac_list = dhd->conf->nv_by_mac.m_mac_list_head; in dhd_conf_set_nv_name_by_mac()
537 nv_num = dhd->conf->nv_by_mac.count; in dhd_conf_set_nv_name_by_mac()
654 chip = dhd->conf->chip; in dhd_conf_get_otp()
655 chiprev = dhd->conf->chiprev; in dhd_conf_get_otp()
708 memcpy(&dhd->conf->otp_mac, tuple->data, ETHER_ADDR_LEN); in dhd_conf_get_otp()
725 chip = dhd->conf->chip; in dhd_conf_legacy_msi_chip()
738 dhd_conf_free_country_list(struct dhd_conf *conf) in dhd_conf_free_country_list() argument
740 country_list_t *country = conf->country_head; in dhd_conf_free_country_list()
746 conf->country_head = country->next; in dhd_conf_free_country_list()
748 country = conf->country_head; in dhd_conf_free_country_list()
755 dhd_conf_free_mchan_list(struct dhd_conf *conf) in dhd_conf_free_mchan_list() argument
757 mchan_params_t *mchan = conf->mchan; in dhd_conf_free_mchan_list()
763 conf->mchan = mchan->next; in dhd_conf_free_mchan_list()
765 mchan = conf->mchan; in dhd_conf_free_mchan_list()
777 chip = dhd->conf->chip; in dhd_conf_match_chip()
778 chiprev = dhd->conf->chiprev; in dhd_conf_match_chip()
804 devid = dhd->conf->devid; in dhd_conf_match_module()
805 chip = dhd->conf->chip; in dhd_conf_match_module()
806 chiprev = dhd->conf->chiprev; in dhd_conf_match_module()
808 svid = dhd->conf->svid; in dhd_conf_match_module()
809 ssid = dhd->conf->ssid; in dhd_conf_match_module()
816 !strcmp(row->module_name, dhd->conf->module_name)) { in dhd_conf_match_module()
941 if (dhd->conf->fw_type == FW_TYPE_EZMESH) in dhd_conf_set_fw_name_by_chip()
970 dhd->conf->fw_type = fw_type; in dhd_conf_set_fw_name_by_chip()
1021 chip = dhd->conf->chip; in dhd_conf_set_nv_name_by_chip()
1022 chiprev = dhd->conf->chiprev; in dhd_conf_set_nv_name_by_chip()
1058 if (strlen(dhd->conf->module_name)) { in dhd_conf_set_nv_name_by_chip()
1060 strcat(name_ptr, dhd->conf->module_name); in dhd_conf_set_nv_name_by_chip()
1063 if (dhd->conf->chip == BCM4359_CHIP_ID) { in dhd_conf_set_nv_name_by_chip()
1077 for (i=0; i<dhd->conf->nv_by_chip.count; i++) { in dhd_conf_set_nv_name_by_chip()
1078 if (chip==dhd->conf->nv_by_chip.m_chip_nv_path_head[i].chip && in dhd_conf_set_nv_name_by_chip()
1079 chiprev==dhd->conf->nv_by_chip.m_chip_nv_path_head[i].chiprev) { in dhd_conf_set_nv_name_by_chip()
1080 strcpy(name_ptr, dhd->conf->nv_by_chip.m_chip_nv_path_head[i].name); in dhd_conf_set_nv_name_by_chip()
1152 struct dhd_conf *conf = dhd->conf; in dhd_conf_tput_monitor() local
1154 if (conf->tput_monitor_ms && conf->data_drop_mode >= FW_DROP) { in dhd_conf_tput_monitor()
1155 if (conf->tput_ts.tv_sec == 0 && conf->tput_ts.tv_nsec == 0) { in dhd_conf_tput_monitor()
1156 osl_do_gettimeofday(&conf->tput_ts); in dhd_conf_tput_monitor()
1164 diff_ms = osl_do_gettimediff(&cur_ts, &conf->tput_ts)/1000; in dhd_conf_tput_monitor()
1165 if (diff_ms >= conf->tput_monitor_ms) { in dhd_conf_tput_monitor()
1166 diff_bytes = dhd->dstats.tx_bytes - conf->last_tx; in dhd_conf_tput_monitor()
1173 diff_bytes = dhd->dstats.rx_bytes - conf->last_rx; in dhd_conf_tput_monitor()
1180 diff_bytes = conf->net_len - conf->last_net_tx; in dhd_conf_tput_monitor()
1187 conf->last_tx = dhd->dstats.tx_bytes; in dhd_conf_tput_monitor()
1188 conf->last_rx = dhd->dstats.rx_bytes; in dhd_conf_tput_monitor()
1189 conf->last_net_tx = conf->net_len; in dhd_conf_tput_monitor()
1190 memcpy(&conf->tput_ts, &cur_ts, sizeof(struct osl_timespec)); in dhd_conf_tput_monitor()
1205 struct dhd_conf *conf = dhd->conf; in dhd_conf_set_tput_patch() local
1207 if (conf->tput_patch) { in dhd_conf_set_tput_patch()
1208 conf->mtu = 1500; in dhd_conf_set_tput_patch()
1212 conf->pktsetsum = FALSE; in dhd_conf_set_tput_patch()
1214 conf->dhd_dpc_prio = 98; in dhd_conf_set_tput_patch()
1218 // conf->dpc_cpucore = 2; in dhd_conf_set_tput_patch()
1219 // conf->rxf_cpucore = 3; in dhd_conf_set_tput_patch()
1220 // conf->disable_proptx = 1; in dhd_conf_set_tput_patch()
1221 conf->frameburst = 1; in dhd_conf_set_tput_patch()
1223 conf->max_hdr_read = 256; in dhd_conf_set_tput_patch()
1230 conf->xps_cpus = TRUE; in dhd_conf_set_tput_patch()
1233 conf->rps_cpus = TRUE; in dhd_conf_set_tput_patch()
1235 conf->orphan_move = 3; in dhd_conf_set_tput_patch()
1236 conf->flow_ring_queue_threshold = 2048; in dhd_conf_set_tput_patch()
1239 conf->tcpack_sup_ratio = 15; in dhd_conf_set_tput_patch()
1240 conf->tcpack_sup_delay = 10; in dhd_conf_set_tput_patch()
1244 conf->mtu = 0; in dhd_conf_set_tput_patch()
1245 conf->pktsetsum = FALSE; in dhd_conf_set_tput_patch()
1247 conf->dhd_dpc_prio = -1; in dhd_conf_set_tput_patch()
1248 conf->disable_proptx = -1; in dhd_conf_set_tput_patch()
1249 conf->frameburst = 1; in dhd_conf_set_tput_patch()
1251 conf->max_hdr_read = 0; in dhd_conf_set_tput_patch()
1258 conf->xps_cpus = FALSE; in dhd_conf_set_tput_patch()
1261 conf->rps_cpus = FALSE; in dhd_conf_set_tput_patch()
1264 conf->orphan_move = 1; in dhd_conf_set_tput_patch()
1266 conf->orphan_move = 0; in dhd_conf_set_tput_patch()
1268 conf->flow_ring_queue_threshold = 2048; in dhd_conf_set_tput_patch()
1271 conf->tcpack_sup_ratio = CUSTOM_TCPACK_SUPP_RATIO; in dhd_conf_set_tput_patch()
1272 conf->tcpack_sup_delay = CUSTOM_TCPACK_DELAY_TIME; in dhd_conf_set_tput_patch()
1280 struct dhd_conf *conf = dhd->conf; in dhd_conf_dump_tput_patch() local
1282 CONFIG_TRACE("tput_patch=%d\n", conf->tput_patch); in dhd_conf_dump_tput_patch()
1283 CONFIG_TRACE("mtu=%d\n", conf->mtu); in dhd_conf_dump_tput_patch()
1284 CONFIG_TRACE("pktsetsum=%d\n", conf->pktsetsum); in dhd_conf_dump_tput_patch()
1285 CONFIG_TRACE("orphan_move=%d\n", conf->orphan_move); in dhd_conf_dump_tput_patch()
1287 CONFIG_TRACE("tcpack_sup_ratio=%d\n", conf->tcpack_sup_ratio); in dhd_conf_dump_tput_patch()
1288 CONFIG_TRACE("tcpack_sup_delay=%d\n", conf->tcpack_sup_delay); in dhd_conf_dump_tput_patch()
1292 CONFIG_TRACE("dhd_dpc_prio=%d\n", conf->dhd_dpc_prio); in dhd_conf_dump_tput_patch()
1293 CONFIG_TRACE("dhd_poll=%d\n", conf->dhd_poll); in dhd_conf_dump_tput_patch()
1294 CONFIG_TRACE("disable_proptx=%d\n", conf->disable_proptx); in dhd_conf_dump_tput_patch()
1295 CONFIG_TRACE("frameburst=%d\n", conf->frameburst); in dhd_conf_dump_tput_patch()
1297 CONFIG_TRACE("max_hdr_read=%d\n", conf->max_hdr_read); in dhd_conf_dump_tput_patch()
1304 CONFIG_TRACE("flow_ring_queue_threshold=%d\n", conf->flow_ring_queue_threshold); in dhd_conf_dump_tput_patch()
1308 CONFIG_TRACE("xps_cpus=%d\n", conf->xps_cpus); in dhd_conf_dump_tput_patch()
1311 CONFIG_TRACE("rps_cpus=%d\n", conf->rps_cpus); in dhd_conf_dump_tput_patch()
1359 if (strlen(dhd->conf->module_name)) in dhd_conf_add_filepath()
1360 module_name = dhd->conf->module_name; in dhd_conf_add_filepath()
1385 /* External conf takes precedence if specified */ in dhd_conf_set_path_params()
1562 dhd->conf->ioctl_ver = WLC_IOCTL_VERSION; in dhd_conf_get_ioctl_ver()
1574 dhd->conf->ioctl_ver = val; in dhd_conf_get_ioctl_ver()
1575 CONFIG_TRACE("ioctl_ver=%d\n", dhd->conf->ioctl_ver); in dhd_conf_get_ioctl_ver()
1598 struct dhd_conf *conf = dhd->conf; in dhd_conf_map_country_list() local
1599 country_list_t *country = conf->country_head; in dhd_conf_map_country_list()
1659 if (!(dhd && dhd->conf)) { in dhd_conf_fix_country()
1677 dhd_conf_map_country_list(dhd, &dhd->conf->cspec); in dhd_conf_fix_country()
1678 if ((bcmerror = dhd_conf_set_country(dhd, &dhd->conf->cspec)) < 0) { in dhd_conf_fix_country()
2023 if (dhd && dhd->conf) in dhd_conf_get_band()
2024 band = dhd->conf->band; in dhd_conf_get_band()
2026 CONFIG_ERROR("dhd or conf is NULL\n"); in dhd_conf_get_band()
2037 if (dhd && dhd->conf) { in dhd_conf_match_channel()
2038 if (dhd->conf->channels.count == 0) in dhd_conf_match_channel()
2040 for (i=0; i<dhd->conf->channels.count; i++) { in dhd_conf_match_channel()
2041 if (channel == dhd->conf->channels.channel[i]) in dhd_conf_match_channel()
2046 CONFIG_ERROR("dhd or conf is NULL\n"); in dhd_conf_match_channel()
2056 struct dhd_conf *conf = dhd->conf; in dhd_conf_set_roam() local
2059 if (dhd->conf->chip == BCM4359_CHIP_ID) { in dhd_conf_set_roam()
2069 dhd_roam_disable = conf->roam_off; in dhd_conf_set_roam()
2070 dhd_conf_set_intiovar(dhd, ifidx, WLC_SET_VAR, "roam_off", dhd->conf->roam_off, 0, FALSE); in dhd_conf_set_roam()
2072 if (!conf->roam_off || !conf->roam_off_suspend) { in dhd_conf_set_roam()
2073 CONFIG_MSG("set roam_trigger %d\n", conf->roam_trigger[0]); in dhd_conf_set_roam()
2075 (char *)conf->roam_trigger, sizeof(conf->roam_trigger), FALSE); in dhd_conf_set_roam()
2077 CONFIG_MSG("set roam_scan_period %d\n", conf->roam_scan_period[0]); in dhd_conf_set_roam()
2079 (char *)conf->roam_scan_period, sizeof(conf->roam_scan_period), FALSE); in dhd_conf_set_roam()
2081 CONFIG_MSG("set roam_delta %d\n", conf->roam_delta[0]); in dhd_conf_set_roam()
2083 (char *)conf->roam_delta, sizeof(conf->roam_delta), FALSE); in dhd_conf_set_roam()
2086 dhd->conf->fullroamperiod, 1, FALSE); in dhd_conf_set_roam()
2151 if (dhd->conf->roam_off_suspend) in dhd_conf_enable_roam_offload()
2180 if (dhd->conf->bw_cap[0] >= 0) { in dhd_conf_set_bw_cap()
2183 param.bw_cap = (uint)dhd->conf->bw_cap[0]; in dhd_conf_set_bw_cap()
2189 if (dhd->conf->bw_cap[1] >= 0) { in dhd_conf_set_bw_cap()
2192 param.bw_cap = (uint)dhd->conf->bw_cap[1]; in dhd_conf_set_bw_cap()
2253 struct dhd_conf *conf = dhd->conf; in dhd_conf_update_wme() local
2257 wme = &conf->wme_sta; in dhd_conf_update_wme()
2259 wme = &conf->wme_ap; in dhd_conf_update_wme()
2312 if (dhd && dhd->conf) { in dhd_conf_set_wme()
2313 if (!dhd->conf->force_wme_ac) { in dhd_conf_set_wme()
2315 dhd->conf->force_wme_ac); in dhd_conf_set_wme()
2330 CONFIG_ERROR("dhd or conf is NULL\n"); in dhd_conf_set_wme()
2339 struct dhd_conf *conf = dhd->conf; in dhd_conf_set_mchan_bw() local
2340 mchan_params_t *mchan = conf->mchan; in dhd_conf_set_mchan_bw()
2383 for(i=0; i<dhd->conf->pkt_filter_add.count; i++) { in dhd_conf_add_pkt_filter()
2384 dhd->pktfilter[i+dhd->pktfilter_count] = dhd->conf->pkt_filter_add.filter[i]; in dhd_conf_add_pkt_filter()
2389 if (dhd->conf->magic_pkt_filter_add) { in dhd_conf_add_pkt_filter()
2390 strcat(dhd->conf->magic_pkt_filter_add, " 0x"); in dhd_conf_add_pkt_filter()
2391 strcat(dhd->conf->magic_pkt_filter_add, "FFFFFFFFFFFF"); in dhd_conf_add_pkt_filter()
2393 strcat(dhd->conf->magic_pkt_filter_add, "FFFFFFFFFFFF"); in dhd_conf_add_pkt_filter()
2394 strcat(dhd->conf->magic_pkt_filter_add, " 0x"); in dhd_conf_add_pkt_filter()
2395 strcat(dhd->conf->magic_pkt_filter_add, "FFFFFFFFFFFF"); in dhd_conf_add_pkt_filter()
2398 strncat(dhd->conf->magic_pkt_filter_add, str, 12); in dhd_conf_add_pkt_filter()
2399 dhd->pktfilter[dhd->pktfilter_count] = dhd->conf->magic_pkt_filter_add; in dhd_conf_add_pkt_filter()
2409 if (dhd && dhd->conf) { in dhd_conf_del_pkt_filter()
2410 for (i=0; i<dhd->conf->pkt_filter_del.count; i++) { in dhd_conf_del_pkt_filter()
2411 if (id == dhd->conf->pkt_filter_del.id[i]) { in dhd_conf_del_pkt_filter()
2412 CONFIG_MSG("%d\n", dhd->conf->pkt_filter_del.id[i]); in dhd_conf_del_pkt_filter()
2452 if (dhd && dhd->conf) { in dhd_conf_get_pm()
2453 return dhd->conf->pm; in dhd_conf_get_pm()
2462 if (dhd->conf->insuspend & (NO_TXCTL_IN_SUSPEND | WOWL_IN_SUSPEND)) { in dhd_conf_check_hostsleep()
2478 if (dhd->conf->insuspend & NO_TXDATA_IN_SUSPEND) { in dhd_conf_check_hostsleep()
2488 if (dhd->conf->insuspend & NO_TXDATA_IN_SUSPEND) { in dhd_conf_check_hostsleep()
2523 if (dhd->conf->insuspend & (NO_TXCTL_IN_SUSPEND | WOWL_IN_SUSPEND)) { in dhd_conf_get_hostsleep()
2528 if (dhd->conf->insuspend & NO_TXDATA_IN_SUSPEND) { in dhd_conf_get_hostsleep()
2534 if (dhd->conf->insuspend & NO_TXDATA_IN_SUSPEND) { in dhd_conf_get_hostsleep()
2772 if (!dhd->conf->garp || ifidx != 0 || !(dhd->op_mode & DHD_FLAG_STA_MODE)) in dhd_conf_set_garp()
2808 dhd_conf_mkeep_alive(dhd, ifidx, 0, dhd->conf->keep_alive_period, packet, TRUE); in dhd_conf_set_garp()
2825 insuspend = dhd->conf->insuspend & in dhd_conf_get_insuspend()
2829 insuspend = dhd->conf->insuspend & in dhd_conf_get_insuspend()
2840 struct dhd_conf *conf = dhd->conf; in dhd_conf_check_connection() local
2853 memcpy(&conf->bssid_insuspend, &bssid, ETHER_ADDR_LEN); in dhd_conf_check_connection()
2855 memset(&conf->bssid_insuspend, 0, ETHER_ADDR_LEN); in dhd_conf_check_connection()
2858 if (memcmp(ðer_null, &conf->bssid_insuspend, ETHER_ADDR_LEN)) { in dhd_conf_check_connection()
2866 if (conf->pm >= 0) in dhd_conf_check_connection()
2867 pm = conf->pm; in dhd_conf_check_connection()
2875 memcpy(&msg.addr, &conf->bssid_insuspend, ETHER_ADDR_LEN); in dhd_conf_check_connection()
2899 struct dhd_conf *conf = dhd->conf; in dhd_conf_set_suspend_event() local
2908 conf->wlfc = TRUE; in dhd_conf_set_suspend_event()
2910 conf->wlfc = FALSE; in dhd_conf_set_suspend_event()
2915 conf->resume_eventmask, sizeof(conf->resume_eventmask)); in dhd_conf_set_suspend_event()
2923 conf->resume_eventmask, sizeof(conf->resume_eventmask), FALSE); in dhd_conf_set_suspend_event()
2926 if (conf->wlfc) { in dhd_conf_set_suspend_event()
2940 struct dhd_conf *conf = dhd->conf; in dhd_conf_suspend_resume_sta() local
2954 conf->roam_off_suspend, 0, FALSE); in dhd_conf_suspend_resume_sta()
2956 conf->suspend_bcn_li_dtim, 0, FALSE); in dhd_conf_suspend_resume_sta()
2957 if (conf->pm_in_suspend >= 0) in dhd_conf_suspend_resume_sta()
2958 pm = conf->pm_in_suspend; in dhd_conf_suspend_resume_sta()
2959 else if (conf->pm >= 0) in dhd_conf_suspend_resume_sta()
2960 pm = conf->pm; in dhd_conf_suspend_resume_sta()
2967 for(i=0; i<conf->pkt_filter_add.count; i++) { in dhd_conf_suspend_resume_sta()
2968 dhd_conf_wowl_pattern(dhd, ifidx, TRUE, conf->pkt_filter_add.filter[i]); in dhd_conf_suspend_resume_sta()
2970 dhd_conf_set_intiovar(dhd, ifidx, WLC_SET_VAR, "wowl", conf->wowl, 0, FALSE); in dhd_conf_suspend_resume_sta()
2979 if (conf->pm >= 0) in dhd_conf_suspend_resume_sta()
2980 pm = conf->pm; in dhd_conf_suspend_resume_sta()
2994 conf->roam_off, 0, FALSE); in dhd_conf_suspend_resume_sta()
3005 struct dhd_conf *conf = dhd->conf; in dhd_conf_suspend_resume_ap() local
3063 struct dhd_conf *conf = dhd->conf; in dhd_conf_set_suspend_resume() local
3069 dhd->op_mode, suspend, conf->suspended, insuspend, conf->suspend_mode); in dhd_conf_set_suspend_resume()
3071 if (conf->suspended == suspend || !dhd->up) { in dhd_conf_set_suspend_resume()
3077 if (conf->suspend_mode == PM_NOTIFIER) in dhd_conf_set_suspend_resume()
3089 if (conf->suspend_mode == PM_NOTIFIER) in dhd_conf_set_suspend_resume()
3109 dhd_conf_set_wl_cmd(dhd, conf->wl_suspend, FALSE); in dhd_conf_set_suspend_resume()
3111 conf->suspended = TRUE; in dhd_conf_set_suspend_resume()
3122 dhd_conf_set_wl_cmd(dhd, conf->wl_resume, FALSE); in dhd_conf_set_suspend_resume()
3134 if (conf->suspend_mode == PM_NOTIFIER) in dhd_conf_set_suspend_resume()
3141 conf->suspended = FALSE; in dhd_conf_set_suspend_resume()
3151 struct dhd_conf *conf = dhd->conf; in dhd_conf_get_disable_proptx() local
3163 } else if (conf->chip == BCM4334_CHIP_ID || conf->chip == BCM43340_CHIP_ID || in dhd_conf_get_disable_proptx()
3164 dhd->conf->chip == BCM43340_CHIP_ID || conf->chip == BCM4324_CHIP_ID) { in dhd_conf_get_disable_proptx()
3175 if (conf->disable_proptx == 0) { in dhd_conf_get_disable_proptx()
3181 } else if (conf->disable_proptx >= 1) { in dhd_conf_get_disable_proptx()
3279 if (chip == dhd->conf->chip && rev == dhd->conf->chiprev) in dhd_conf_read_chiprev()
3381 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_wme_ac_params() local
3388 conf->force_wme_ac = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_wme_ac_params()
3389 CONFIG_MSG("force_wme_ac = %d\n", conf->force_wme_ac); in dhd_conf_read_wme_ac_params()
3392 dhd_conf_read_wme_ac_value(&conf->wme_sta, data, AC_BE); in dhd_conf_read_wme_ac_params()
3395 dhd_conf_read_wme_ac_value(&conf->wme_sta, data, AC_BK); in dhd_conf_read_wme_ac_params()
3398 dhd_conf_read_wme_ac_value(&conf->wme_sta, data, AC_VI); in dhd_conf_read_wme_ac_params()
3401 dhd_conf_read_wme_ac_value(&conf->wme_sta, data, AC_VO); in dhd_conf_read_wme_ac_params()
3404 dhd_conf_read_wme_ac_value(&conf->wme_ap, data, AC_BE); in dhd_conf_read_wme_ac_params()
3407 dhd_conf_read_wme_ac_value(&conf->wme_ap, data, AC_BK); in dhd_conf_read_wme_ac_params()
3410 dhd_conf_read_wme_ac_value(&conf->wme_ap, data, AC_VI); in dhd_conf_read_wme_ac_params()
3413 dhd_conf_read_wme_ac_value(&conf->wme_ap, data, AC_VO); in dhd_conf_read_wme_ac_params()
3429 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_fw_by_mac() local
3447 dhd_conf_free_mac_list(&conf->fw_by_mac); in dhd_conf_read_fw_by_mac()
3450 conf->fw_by_mac.count = (uint32)simple_strtol(pch, NULL, 0); in dhd_conf_read_fw_by_mac()
3451 if (!(mac_list = kmalloc(sizeof(wl_mac_list_t)*conf->fw_by_mac.count, in dhd_conf_read_fw_by_mac()
3453 conf->fw_by_mac.count = 0; in dhd_conf_read_fw_by_mac()
3456 CONFIG_MSG("fw_count=%d\n", conf->fw_by_mac.count); in dhd_conf_read_fw_by_mac()
3457 conf->fw_by_mac.m_mac_list_head = mac_list; in dhd_conf_read_fw_by_mac()
3458 for (i=0; i<conf->fw_by_mac.count; i++) { in dhd_conf_read_fw_by_mac()
3497 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_nv_by_mac() local
3504 dhd_conf_free_mac_list(&conf->nv_by_mac); in dhd_conf_read_nv_by_mac()
3507 conf->nv_by_mac.count = (uint32)simple_strtol(pch, NULL, 0); in dhd_conf_read_nv_by_mac()
3508 if (!(mac_list = kmalloc(sizeof(wl_mac_list_t)*conf->nv_by_mac.count, in dhd_conf_read_nv_by_mac()
3510 conf->nv_by_mac.count = 0; in dhd_conf_read_nv_by_mac()
3513 CONFIG_MSG("nv_count=%d\n", conf->nv_by_mac.count); in dhd_conf_read_nv_by_mac()
3514 conf->nv_by_mac.m_mac_list_head = mac_list; in dhd_conf_read_nv_by_mac()
3515 for (i=0; i<conf->nv_by_mac.count; i++) { in dhd_conf_read_nv_by_mac()
3554 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_nv_by_chip() local
3564 dhd_conf_free_chip_nv_path_list(&conf->nv_by_chip); in dhd_conf_read_nv_by_chip()
3567 conf->nv_by_chip.count = (uint32)simple_strtol(pch, NULL, 0); in dhd_conf_read_nv_by_chip()
3568 if (!(chip_nv_path = kmalloc(sizeof(wl_chip_nv_path_t)*conf->nv_by_chip.count, in dhd_conf_read_nv_by_chip()
3570 conf->nv_by_chip.count = 0; in dhd_conf_read_nv_by_chip()
3573 CONFIG_MSG("nv_by_chip_count=%d\n", conf->nv_by_chip.count); in dhd_conf_read_nv_by_chip()
3574 conf->nv_by_chip.m_chip_nv_path_head = chip_nv_path; in dhd_conf_read_nv_by_chip()
3575 for (i=0; i<conf->nv_by_chip.count; i++) { in dhd_conf_read_nv_by_chip()
3595 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_roam_params() local
3600 conf->roam_off = 0; in dhd_conf_read_roam_params()
3602 conf->roam_off = 1; in dhd_conf_read_roam_params()
3603 CONFIG_MSG("roam_off = %d\n", conf->roam_off); in dhd_conf_read_roam_params()
3607 conf->roam_off_suspend = 0; in dhd_conf_read_roam_params()
3609 conf->roam_off_suspend = 1; in dhd_conf_read_roam_params()
3610 CONFIG_MSG("roam_off_suspend = %d\n", conf->roam_off_suspend); in dhd_conf_read_roam_params()
3613 conf->roam_trigger[0] = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_roam_params()
3614 CONFIG_MSG("roam_trigger = %d\n", conf->roam_trigger[0]); in dhd_conf_read_roam_params()
3617 conf->roam_scan_period[0] = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_roam_params()
3618 CONFIG_MSG("roam_scan_period = %d\n", conf->roam_scan_period[0]); in dhd_conf_read_roam_params()
3621 conf->roam_delta[0] = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_roam_params()
3622 CONFIG_MSG("roam_delta = %d\n", conf->roam_delta[0]); in dhd_conf_read_roam_params()
3625 conf->fullroamperiod = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_roam_params()
3626 CONFIG_MSG("fullroamperiod = %d\n", conf->fullroamperiod); in dhd_conf_read_roam_params()
3644 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_country() local
3658 memset(&conf->cspec, 0, sizeof(wl_country_t)); in dhd_conf_read_country()
3659 memcpy(conf->cspec.country_abbrev, data, len_data); in dhd_conf_read_country()
3660 memcpy(conf->cspec.ccode, data, len_data); in dhd_conf_read_country()
3661 CONFIG_MSG("ccode = %s\n", conf->cspec.ccode); in dhd_conf_read_country()
3664 conf->cspec.rev = (int32)simple_strtol(data, NULL, 10); in dhd_conf_read_country()
3665 CONFIG_MSG("regrev = %d\n", conf->cspec.rev); in dhd_conf_read_country()
3668 dhd_conf_free_country_list(conf); in dhd_conf_read_country()
3698 if (!conf->country_head) { in dhd_conf_read_country()
3699 conf->country_head = country; in dhd_conf_read_country()
3721 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_mchan_params() local
3730 dhd_conf_free_mchan_list(conf); in dhd_conf_read_mchan_params()
3780 if (!conf->mchan) { in dhd_conf_read_mchan_params()
3781 conf->mchan = mchan; in dhd_conf_read_mchan_params()
3801 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_pkt_filter() local
3823 strcpy(&conf->pkt_filter_add.filter[i][0], pch); in dhd_conf_read_pkt_filter()
3825 i, &conf->pkt_filter_add.filter[i][0]); in dhd_conf_read_pkt_filter()
3829 conf->pkt_filter_add.count = i; in dhd_conf_read_pkt_filter()
3837 conf->pkt_filter_del.id[i] = (uint32)simple_strtol(pch, NULL, 10); in dhd_conf_read_pkt_filter()
3841 conf->pkt_filter_del.count = i; in dhd_conf_read_pkt_filter()
3843 for (i=0; i<conf->pkt_filter_del.count; i++) in dhd_conf_read_pkt_filter()
3844 printk(KERN_CONT "%d ", conf->pkt_filter_del.id[i]); in dhd_conf_read_pkt_filter()
3848 if (conf->magic_pkt_filter_add) { in dhd_conf_read_pkt_filter()
3849 kfree(conf->magic_pkt_filter_add); in dhd_conf_read_pkt_filter()
3850 conf->magic_pkt_filter_add = NULL; in dhd_conf_read_pkt_filter()
3852 if (!(conf->magic_pkt_filter_add = kmalloc(MAGIC_PKT_FILTER_LEN, GFP_KERNEL))) { in dhd_conf_read_pkt_filter()
3855 memset(conf->magic_pkt_filter_add, 0, MAGIC_PKT_FILTER_LEN); in dhd_conf_read_pkt_filter()
3856 strcpy(conf->magic_pkt_filter_add, data); in dhd_conf_read_pkt_filter()
3857 CONFIG_MSG("magic_pkt_filter_add = %s\n", conf->magic_pkt_filter_add); in dhd_conf_read_pkt_filter()
3883 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_isam() local
3887 sprintf(conf->isam_init, "isam_init %s", data); in dhd_conf_read_isam()
3888 CONFIG_MSG("isam_init=%s\n", conf->isam_init); in dhd_conf_read_isam()
3891 sprintf(conf->isam_config, "isam_config %s", data); in dhd_conf_read_isam()
3892 CONFIG_MSG("isam_config=%s\n", conf->isam_config); in dhd_conf_read_isam()
3895 sprintf(conf->isam_enable, "isam_enable %s", data); in dhd_conf_read_isam()
3896 CONFIG_MSG("isam_enable=%s\n", conf->isam_enable); in dhd_conf_read_isam()
3909 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_dhcp_params() local
3914 conf->dhcpc_enable = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_dhcp_params()
3915 CONFIG_MSG("dhcpc_enable = %d\n", conf->dhcpc_enable); in dhd_conf_read_dhcp_params()
3918 conf->dhcpd_enable = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_dhcp_params()
3919 CONFIG_MSG("dhcpd_enable = %d\n", conf->dhcpd_enable); in dhd_conf_read_dhcp_params()
3926 memcpy(&conf->dhcpd_ip_addr, &ipa_set, sizeof(struct ipv4_addr)); in dhd_conf_read_dhcp_params()
3934 memcpy(&conf->dhcpd_ip_mask, &ipa_set, sizeof(struct ipv4_addr)); in dhd_conf_read_dhcp_params()
3942 memcpy(&conf->dhcpd_ip_start, &ipa_set, sizeof(struct ipv4_addr)); in dhd_conf_read_dhcp_params()
3950 memcpy(&conf->dhcpd_ip_end, &ipa_set, sizeof(struct ipv4_addr)); in dhd_conf_read_dhcp_params()
3964 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_sdio_params() local
3982 conf->use_rxchain = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
3983 CONFIG_MSG("use_rxchain = %d\n", conf->use_rxchain); in dhd_conf_read_sdio_params()
3986 conf->dhd_txminmax = (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
3987 CONFIG_MSG("dhd_txminmax = %d\n", conf->dhd_txminmax); in dhd_conf_read_sdio_params()
3990 conf->txinrx_thres = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
3991 CONFIG_MSG("txinrx_thres = %d\n", conf->txinrx_thres); in dhd_conf_read_sdio_params()
3995 conf->max_hdr_read = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
3996 CONFIG_MSG("max_hdr_read = %d\n", conf->max_hdr_read); in dhd_conf_read_sdio_params()
4006 conf->oob_enabled_later = FALSE; in dhd_conf_read_sdio_params()
4008 conf->oob_enabled_later = TRUE; in dhd_conf_read_sdio_params()
4009 CONFIG_MSG("oob_enabled_later = %d\n", conf->oob_enabled_later); in dhd_conf_read_sdio_params()
4013 conf->dpc_cpucore = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
4014 CONFIG_MSG("dpc_cpucore = %d\n", conf->dpc_cpucore); in dhd_conf_read_sdio_params()
4017 conf->rxf_cpucore = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
4018 CONFIG_MSG("rxf_cpucore = %d\n", conf->rxf_cpucore); in dhd_conf_read_sdio_params()
4021 conf->dhd_dpc_prio = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
4022 CONFIG_MSG("dhd_dpc_prio = %d\n", conf->dhd_dpc_prio); in dhd_conf_read_sdio_params()
4026 conf->txglomsize = (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
4027 if (conf->txglomsize > SDPCM_MAXGLOM_SIZE) in dhd_conf_read_sdio_params()
4028 conf->txglomsize = SDPCM_MAXGLOM_SIZE; in dhd_conf_read_sdio_params()
4029 CONFIG_MSG("txglomsize = %d\n", conf->txglomsize); in dhd_conf_read_sdio_params()
4033 conf->txglom_ext = FALSE; in dhd_conf_read_sdio_params()
4035 conf->txglom_ext = TRUE; in dhd_conf_read_sdio_params()
4036 CONFIG_MSG("txglom_ext = %d\n", conf->txglom_ext); in dhd_conf_read_sdio_params()
4037 if (conf->txglom_ext) { in dhd_conf_read_sdio_params()
4038 if ((conf->chip == BCM43362_CHIP_ID) || (conf->chip == BCM4330_CHIP_ID)) in dhd_conf_read_sdio_params()
4039 conf->txglom_bucket_size = 1680; in dhd_conf_read_sdio_params()
4040 else if (conf->chip == BCM43340_CHIP_ID || conf->chip == BCM43341_CHIP_ID || in dhd_conf_read_sdio_params()
4041 conf->chip == BCM4334_CHIP_ID || conf->chip == BCM4324_CHIP_ID) in dhd_conf_read_sdio_params()
4042 conf->txglom_bucket_size = 1684; in dhd_conf_read_sdio_params()
4044 CONFIG_MSG("txglom_bucket_size = %d\n", conf->txglom_bucket_size); in dhd_conf_read_sdio_params()
4048 conf->bus_rxglom = FALSE; in dhd_conf_read_sdio_params()
4050 conf->bus_rxglom = TRUE; in dhd_conf_read_sdio_params()
4051 CONFIG_MSG("bus:rxglom = %d\n", conf->bus_rxglom); in dhd_conf_read_sdio_params()
4054 conf->deferred_tx_len = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
4055 CONFIG_MSG("deferred_tx_len = %d\n", conf->deferred_tx_len); in dhd_conf_read_sdio_params()
4058 conf->txctl_tmo_fix = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_sdio_params()
4059 CONFIG_MSG("txctl_tmo_fix = %d\n", conf->txctl_tmo_fix); in dhd_conf_read_sdio_params()
4062 conf->tx_max_offset = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_sdio_params()
4063 CONFIG_MSG("tx_max_offset = %d\n", conf->tx_max_offset); in dhd_conf_read_sdio_params()
4067 conf->txglom_mode = FALSE; in dhd_conf_read_sdio_params()
4069 conf->txglom_mode = TRUE; in dhd_conf_read_sdio_params()
4070 CONFIG_MSG("txglom_mode = %d\n", conf->txglom_mode); in dhd_conf_read_sdio_params()
4075 conf->intr_extn = FALSE; in dhd_conf_read_sdio_params()
4077 conf->intr_extn = TRUE; in dhd_conf_read_sdio_params()
4078 CONFIG_MSG("intr_extn = %d\n", conf->intr_extn); in dhd_conf_read_sdio_params()
4084 conf->rxlim_en = FALSE; in dhd_conf_read_sdio_params()
4086 conf->rxlim_en = TRUE; in dhd_conf_read_sdio_params()
4087 CONFIG_MSG("rxlim_en = %d\n", conf->rxlim_en); in dhd_conf_read_sdio_params()
4093 conf->txseq_sync = FALSE; in dhd_conf_read_sdio_params()
4095 conf->txseq_sync = TRUE; in dhd_conf_read_sdio_params()
4096 CONFIG_MSG("txseq_sync = %d\n", conf->txseq_sync); in dhd_conf_read_sdio_params()
4102 conf->ramsize = (uint32)simple_strtol(data, NULL, 0); in dhd_conf_read_sdio_params()
4103 CONFIG_MSG("ramsize = %d\n", conf->ramsize); in dhd_conf_read_sdio_params()
4108 conf->read_intr_mode = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_sdio_params()
4109 CONFIG_MSG("read_intr_mode = %d\n", conf->read_intr_mode); in dhd_conf_read_sdio_params()
4113 conf->kso_try_max = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_sdio_params()
4114 CONFIG_MSG("kso_try_max = %d\n", conf->kso_try_max); in dhd_conf_read_sdio_params()
4127 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_pcie_params() local
4132 conf->bus_deepsleep_disable = 0; in dhd_conf_read_pcie_params()
4134 conf->bus_deepsleep_disable = 1; in dhd_conf_read_pcie_params()
4135 CONFIG_MSG("bus:deepsleep_disable = %d\n", conf->bus_deepsleep_disable); in dhd_conf_read_pcie_params()
4138 conf->flow_ring_queue_threshold = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_pcie_params()
4139 CONFIG_MSG("flow_ring_queue_threshold = %d\n", conf->flow_ring_queue_threshold); in dhd_conf_read_pcie_params()
4142 conf->d2h_intr_control = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_pcie_params()
4143 CONFIG_MSG("d2h_intr_control = %d\n", conf->d2h_intr_control); in dhd_conf_read_pcie_params()
4146 conf->enq_hdr_pkt = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_pcie_params()
4147 CONFIG_MSG("enq_hdr_pkt = 0x%x\n", conf->enq_hdr_pkt); in dhd_conf_read_pcie_params()
4150 conf->aspm = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_pcie_params()
4151 CONFIG_MSG("aspm = %d\n", conf->aspm); in dhd_conf_read_pcie_params()
4154 conf->l1ss = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_pcie_params()
4155 CONFIG_MSG("l1ss = %d\n", conf->l1ss); in dhd_conf_read_pcie_params()
4167 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_pm_params() local
4172 conf->deepsleep = TRUE; in dhd_conf_read_pm_params()
4174 conf->deepsleep = FALSE; in dhd_conf_read_pm_params()
4175 CONFIG_MSG("deepsleep = %d\n", conf->deepsleep); in dhd_conf_read_pm_params()
4178 conf->pm = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_pm_params()
4179 CONFIG_MSG("PM = %d\n", conf->pm); in dhd_conf_read_pm_params()
4182 conf->pm_in_suspend = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_pm_params()
4183 CONFIG_MSG("pm_in_suspend = %d\n", conf->pm_in_suspend); in dhd_conf_read_pm_params()
4186 conf->suspend_mode = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_pm_params()
4187 CONFIG_MSG("suspend_mode = %d\n", conf->suspend_mode); in dhd_conf_read_pm_params()
4188 if (conf->suspend_mode == EARLY_SUSPEND) in dhd_conf_read_pm_params()
4189 conf->insuspend &= ~(NO_TXDATA_IN_SUSPEND | NO_TXCTL_IN_SUSPEND); in dhd_conf_read_pm_params()
4190 else if (conf->suspend_mode == PM_NOTIFIER || in dhd_conf_read_pm_params()
4191 conf->suspend_mode == SUSPEND_MODE_2) in dhd_conf_read_pm_params()
4192 conf->insuspend |= (NO_TXDATA_IN_SUSPEND | NO_TXCTL_IN_SUSPEND); in dhd_conf_read_pm_params()
4193 CONFIG_MSG("insuspend = 0x%x\n", conf->insuspend); in dhd_conf_read_pm_params()
4196 conf->suspend_bcn_li_dtim = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_pm_params()
4197 CONFIG_MSG("suspend_bcn_li_dtim = %d\n", conf->suspend_bcn_li_dtim); in dhd_conf_read_pm_params()
4201 conf->insuspend &= ~NO_TXDATA_IN_SUSPEND; in dhd_conf_read_pm_params()
4203 conf->insuspend |= NO_TXDATA_IN_SUSPEND; in dhd_conf_read_pm_params()
4204 CONFIG_MSG("insuspend = 0x%x\n", conf->insuspend); in dhd_conf_read_pm_params()
4207 conf->insuspend = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_pm_params()
4208 CONFIG_MSG("insuspend = 0x%x\n", conf->insuspend); in dhd_conf_read_pm_params()
4212 conf->wowl = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_pm_params()
4213 CONFIG_MSG("wowl = 0x%x\n", conf->wowl); in dhd_conf_read_pm_params()
4218 conf->rekey_offload = TRUE; in dhd_conf_read_pm_params()
4220 conf->rekey_offload = FALSE; in dhd_conf_read_pm_params()
4221 CONFIG_MSG("rekey_offload = %d\n", conf->rekey_offload); in dhd_conf_read_pm_params()
4250 struct dhd_conf *conf = dhd->conf; in dhd_conf_read_others() local
4261 conf->dhd_poll = 0; in dhd_conf_read_others()
4263 conf->dhd_poll = 1; in dhd_conf_read_others()
4264 CONFIG_MSG("dhd_poll = %d\n", conf->dhd_poll); in dhd_conf_read_others()
4275 conf->band = WLC_BAND_2G; in dhd_conf_read_others()
4277 conf->band = WLC_BAND_5G; in dhd_conf_read_others()
4279 conf->band = WLC_BAND_AUTO; in dhd_conf_read_others()
4280 CONFIG_MSG("band = %d\n", conf->band); in dhd_conf_read_others()
4283 conf->bw_cap[0] = (uint)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4284 CONFIG_MSG("bw_cap_2g = %d\n", conf->bw_cap[0]); in dhd_conf_read_others()
4287 conf->bw_cap[1] = (uint)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4288 CONFIG_MSG("bw_cap_5g = %d\n", conf->bw_cap[1]); in dhd_conf_read_others()
4294 conf->bw_cap[0] = (uint32)simple_strtol(pch, NULL, 0); in dhd_conf_read_others()
4295 CONFIG_MSG("bw_cap 2g = %d\n", conf->bw_cap[0]); in dhd_conf_read_others()
4299 conf->bw_cap[1] = (uint32)simple_strtol(pch, NULL, 0); in dhd_conf_read_others()
4300 CONFIG_MSG("bw_cap 5g = %d\n", conf->bw_cap[1]); in dhd_conf_read_others()
4308 conf->channels.channel[i] = (uint32)simple_strtol(pch, NULL, 10); in dhd_conf_read_others()
4312 conf->channels.count = i; in dhd_conf_read_others()
4314 for (i=0; i<conf->channels.count; i++) in dhd_conf_read_others()
4315 printk(KERN_CONT "%d ", conf->channels.channel[i]); in dhd_conf_read_others()
4319 conf->keep_alive_period = (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4320 CONFIG_MSG("keep_alive_period = %d\n", conf->keep_alive_period); in dhd_conf_read_others()
4325 conf->garp = FALSE; in dhd_conf_read_others()
4327 conf->garp = TRUE; in dhd_conf_read_others()
4328 CONFIG_MSG("garp = %d\n", conf->garp); in dhd_conf_read_others()
4332 conf->srl = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4333 CONFIG_MSG("srl = %d\n", conf->srl); in dhd_conf_read_others()
4336 conf->lrl = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4337 CONFIG_MSG("lrl = %d\n", conf->lrl); in dhd_conf_read_others()
4340 conf->bcn_timeout= (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4341 CONFIG_MSG("bcn_timeout = %d\n", conf->bcn_timeout); in dhd_conf_read_others()
4344 conf->frameburst = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4345 CONFIG_MSG("frameburst = %d\n", conf->frameburst); in dhd_conf_read_others()
4348 conf->disable_proptx = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4349 CONFIG_MSG("disable_proptx = %d\n", conf->disable_proptx); in dhd_conf_read_others()
4353 conf->tcpack_sup_mode = (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4354 CONFIG_MSG("tcpack_sup_mode = %d\n", conf->tcpack_sup_mode); in dhd_conf_read_others()
4357 conf->tcpack_sup_ratio = (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4358 CONFIG_MSG("tcpack_sup_ratio = %d\n", conf->tcpack_sup_ratio); in dhd_conf_read_others()
4361 conf->tcpack_sup_delay = (uint)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4362 CONFIG_MSG("tcpack_sup_delay = %d\n", conf->tcpack_sup_delay); in dhd_conf_read_others()
4366 conf->pktprio8021x = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4367 CONFIG_MSG("pktprio8021x = %d\n", conf->pktprio8021x); in dhd_conf_read_others()
4380 conf->orphan_move = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4381 CONFIG_MSG("orphan_move = %d\n", conf->orphan_move); in dhd_conf_read_others()
4384 conf->tsq = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4385 CONFIG_MSG("tsq = %d\n", conf->tsq); in dhd_conf_read_others()
4388 conf->ctrl_resched = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4389 CONFIG_MSG("ctrl_resched = %d\n", conf->ctrl_resched); in dhd_conf_read_others()
4392 conf->rxcnt_timeout = (int)simple_strtol(data, NULL, 10); in dhd_conf_read_others()
4393 CONFIG_MSG("rxcnt_timeout = %d\n", conf->rxcnt_timeout); in dhd_conf_read_others()
4396 conf->in4way = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4397 CONFIG_MSG("in4way = 0x%x\n", conf->in4way); in dhd_conf_read_others()
4406 conf->war = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4407 CONFIG_MSG("war = 0x%x\n", conf->war); in dhd_conf_read_others()
4410 if (conf->wl_preinit) { in dhd_conf_read_others()
4411 kfree(conf->wl_preinit); in dhd_conf_read_others()
4412 conf->wl_preinit = NULL; in dhd_conf_read_others()
4414 if (!(conf->wl_preinit = kmalloc(strlen(data)+1, GFP_KERNEL))) { in dhd_conf_read_others()
4417 memset(conf->wl_preinit, 0, strlen(data)+1); in dhd_conf_read_others()
4418 strcpy(conf->wl_preinit, data); in dhd_conf_read_others()
4419 CONFIG_MSG("wl_preinit = %s\n", conf->wl_preinit); in dhd_conf_read_others()
4423 if (conf->wl_suspend) { in dhd_conf_read_others()
4424 kfree(conf->wl_suspend); in dhd_conf_read_others()
4425 conf->wl_suspend = NULL; in dhd_conf_read_others()
4427 if (!(conf->wl_suspend = kmalloc(strlen(data)+1, GFP_KERNEL))) { in dhd_conf_read_others()
4430 memset(conf->wl_suspend, 0, strlen(data)+1); in dhd_conf_read_others()
4431 strcpy(conf->wl_suspend, data); in dhd_conf_read_others()
4432 CONFIG_MSG("wl_suspend = %s\n", conf->wl_suspend); in dhd_conf_read_others()
4436 if (conf->wl_resume) { in dhd_conf_read_others()
4437 kfree(conf->wl_resume); in dhd_conf_read_others()
4438 conf->wl_resume = NULL; in dhd_conf_read_others()
4440 if (!(conf->wl_resume = kmalloc(strlen(data)+1, GFP_KERNEL))) { in dhd_conf_read_others()
4443 memset(conf->wl_resume, 0, strlen(data)+1); in dhd_conf_read_others()
4444 strcpy(conf->wl_resume, data); in dhd_conf_read_others()
4445 CONFIG_MSG("wl_resume = %s\n", conf->wl_resume); in dhd_conf_read_others()
4454 memcpy(&conf->hw_ether, &ea_addr, ETHER_ADDR_LEN); in dhd_conf_read_others()
4462 memcpy(&conf->hw_ether[ETHER_ADDR_LEN], macpad, sizeof(macpad)); in dhd_conf_read_others()
4466 printk(KERN_CONT "0x%02x, ", conf->hw_ether[ETHER_ADDR_LEN+i]); in dhd_conf_read_others()
4475 conf->proptx_maxcnt_2g = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4476 CONFIG_MSG("proptx_maxcnt_2g = %d\n", conf->proptx_maxcnt_2g); in dhd_conf_read_others()
4479 conf->proptx_maxcnt_5g = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4480 CONFIG_MSG("proptx_maxcnt_5g = %d\n", conf->proptx_maxcnt_5g); in dhd_conf_read_others()
4485 conf->data_drop_mode = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4486 CONFIG_MSG("data_drop_mode = %d\n", conf->data_drop_mode); in dhd_conf_read_others()
4489 conf->tput_monitor_ms = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4490 CONFIG_MSG("tput_monitor_ms = %d\n", conf->tput_monitor_ms); in dhd_conf_read_others()
4494 conf->doflow_tput_thresh = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4495 CONFIG_MSG("doflow_tput_thresh = %d\n", conf->doflow_tput_thresh); in dhd_conf_read_others()
4496 if (conf->doflow_tput_thresh > 0) in dhd_conf_read_others()
4497 conf->tput_monitor_ms = 1000; in dhd_conf_read_others()
4503 conf->scan_intput = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4504 CONFIG_MSG("scan_intput = 0x%x\n", conf->scan_intput); in dhd_conf_read_others()
4507 conf->scan_tput_thresh = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4508 CONFIG_MSG("scan_tput_thresh = %d\n", conf->scan_tput_thresh); in dhd_conf_read_others()
4509 if (conf->scan_tput_thresh > 0) in dhd_conf_read_others()
4510 conf->tput_monitor_ms = 1000; in dhd_conf_read_others()
4513 conf->scan_busy_tmo = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4514 CONFIG_MSG("scan_busy_tmo = %d\n", conf->scan_busy_tmo); in dhd_conf_read_others()
4517 conf->scan_busy_thresh = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4518 CONFIG_MSG("scan_busy_thresh = %d\n", conf->scan_busy_thresh); in dhd_conf_read_others()
4524 conf->tput_patch = TRUE; in dhd_conf_read_others()
4526 conf->tput_patch = FALSE; in dhd_conf_read_others()
4527 CONFIG_MSG("tput_patch = %d\n", conf->tput_patch); in dhd_conf_read_others()
4531 conf->mtu = (int)simple_strtol(data, NULL, 0); in dhd_conf_read_others()
4532 CONFIG_MSG("mtu = %d\n", conf->mtu); in dhd_conf_read_others()
4536 conf->pktsetsum = TRUE; in dhd_conf_read_others()
4538 conf->pktsetsum = FALSE; in dhd_conf_read_others()
4539 CONFIG_MSG("pktsetsum = %d\n", conf->pktsetsum); in dhd_conf_read_others()
4545 conf->xps_cpus = TRUE; in dhd_conf_read_others()
4547 conf->xps_cpus = FALSE; in dhd_conf_read_others()
4548 CONFIG_MSG("xps_cpus = %d\n", conf->xps_cpus); in dhd_conf_read_others()
4554 conf->rps_cpus = TRUE; in dhd_conf_read_others()
4556 conf->rps_cpus = FALSE; in dhd_conf_read_others()
4557 CONFIG_MSG("rps_cpus = %d\n", conf->rps_cpus); in dhd_conf_read_others()
4563 conf->fwchk = TRUE; in dhd_conf_read_others()
4565 conf->fwchk = FALSE; in dhd_conf_read_others()
4566 CONFIG_MSG("fwchk = %d\n", conf->fwchk); in dhd_conf_read_others()
4570 if (conf->vndr_ie_assocreq) { in dhd_conf_read_others()
4571 kfree(conf->vndr_ie_assocreq); in dhd_conf_read_others()
4572 conf->vndr_ie_assocreq = NULL; in dhd_conf_read_others()
4574 if (!(conf->vndr_ie_assocreq = kmalloc(strlen(data)+1, GFP_KERNEL))) { in dhd_conf_read_others()
4577 memset(conf->vndr_ie_assocreq, 0, strlen(data)+1); in dhd_conf_read_others()
4578 strcpy(conf->vndr_ie_assocreq, data); in dhd_conf_read_others()
4579 CONFIG_MSG("vndr_ie_assocreq = %s\n", conf->vndr_ie_assocreq); in dhd_conf_read_others()
4731 dhd->conf->devid = adapter->sdio_func->device; in dhd_conf_set_devid()
4734 dhd->conf->devid = adapter->pci_dev->device; in dhd_conf_set_devid()
4735 dhd->conf->svid = adapter->pci_dev->subsystem_vendor; in dhd_conf_set_devid()
4736 dhd->conf->ssid = adapter->pci_dev->subsystem_device; in dhd_conf_set_devid()
4752 dhd->conf->chip = chip; in dhd_conf_set_chiprev()
4753 dhd->conf->chiprev = chiprev; in dhd_conf_set_chiprev()
4757 dhd->conf->devid, dhd->conf->chip, dhd->conf->chiprev); in dhd_conf_set_chiprev()
4761 dhd->conf->devid, dhd->conf->chip, dhd->conf->chiprev, in dhd_conf_set_chiprev()
4762 dhd->conf->svid, dhd->conf->ssid); in dhd_conf_set_chiprev()
4765 CONFIG_MSG("chip=0x%x, chiprev=%d\n", dhd->conf->chip, dhd->conf->chiprev); in dhd_conf_set_chiprev()
4776 if (dhd && dhd->conf) in dhd_conf_get_chip()
4777 return dhd->conf->chip; in dhd_conf_get_chip()
4786 if (dhd && dhd->conf) in dhd_conf_get_chiprev()
4787 return dhd->conf->chiprev; in dhd_conf_get_chiprev()
4795 struct dhd_conf *conf = dhd->conf; in dhd_conf_set_txglom_params() local
4799 if (conf->chip == BCM43362_CHIP_ID || conf->chip == BCM4330_CHIP_ID || in dhd_conf_set_txglom_params()
4800 conf->chip == BCM43340_CHIP_ID || conf->chip == BCM43341_CHIP_ID || in dhd_conf_set_txglom_params()
4801 conf->chip == BCM4334_CHIP_ID || conf->chip == BCM4324_CHIP_ID) { in dhd_conf_set_txglom_params()
4802 conf->txglom_mode = SDPCM_TXGLOM_CPY; in dhd_conf_set_txglom_params()
4806 if (conf->txglom_ext) in dhd_conf_set_txglom_params()
4808 conf->txglom_ext, conf->txglom_bucket_size); in dhd_conf_set_txglom_params()
4810 conf->txglom_mode==SDPCM_TXGLOM_MDESC?"multi-desc":"copy"); in dhd_conf_set_txglom_params()
4812 conf->txglomsize, conf->deferred_tx_len); in dhd_conf_set_txglom_params()
4814 conf->txinrx_thres, conf->dhd_txminmax); in dhd_conf_set_txglom_params()
4816 conf->tx_max_offset, conf->txctl_tmo_fix); in dhd_conf_set_txglom_params()
4819 conf->txglom_ext = FALSE; in dhd_conf_set_txglom_params()
4820 conf->txglom_bucket_size = 0; in dhd_conf_set_txglom_params()
4821 conf->txglomsize = 0; in dhd_conf_set_txglom_params()
4822 conf->deferred_tx_len = 0; in dhd_conf_set_txglom_params()
4830 uint chip = dhd->conf->chip; in dhd_conf_set_ampdu_mpdu()
4885 struct dhd_conf *conf = dhd->conf; in dhd_conf_preinit_ioctls_sta() local
4888 dhd_conf_set_intiovar(dhd, ifidx, WLC_SET_VAR, "bcn_timeout", conf->bcn_timeout, 0, FALSE); in dhd_conf_preinit_ioctls_sta()
4892 if (conf->pm >= 0) in dhd_conf_preinit_ioctls_sta()
4893 pm = conf->pm; in dhd_conf_preinit_ioctls_sta()
4905 struct dhd_conf *conf = dhd->conf; in dhd_conf_postinit_ioctls() local
4914 dhd_conf_country(dhd, "country", conf->cspec.country_abbrev); in dhd_conf_postinit_ioctls()
4916 dhd_conf_set_intiovar(dhd, 0, WLC_SET_BAND, "WLC_SET_BAND", conf->band, 0, FALSE); in dhd_conf_postinit_ioctls()
4917 dhd_conf_set_intiovar(dhd, 0, WLC_SET_SRL, "WLC_SET_SRL", conf->srl, 0, FALSE); in dhd_conf_postinit_ioctls()
4918 dhd_conf_set_intiovar(dhd, 0, WLC_SET_LRL, "WLC_SET_LRL", conf->lrl, 0, FALSE); in dhd_conf_postinit_ioctls()
4924 conf->bus_deepsleep_disable, 0, FALSE); in dhd_conf_postinit_ioctls()
4928 dhd_conf_set_intiovar(dhd, 0, WLC_SET_VAR, "dhcpc_enable", conf->dhcpc_enable, in dhd_conf_postinit_ioctls()
4930 if (conf->dhcpd_enable >= 0) { in dhd_conf_postinit_ioctls()
4932 (char *)&conf->dhcpd_ip_addr, sizeof(conf->dhcpd_ip_addr), FALSE); in dhd_conf_postinit_ioctls()
4934 (char *)&conf->dhcpd_ip_mask, sizeof(conf->dhcpd_ip_mask), FALSE); in dhd_conf_postinit_ioctls()
4936 (char *)&conf->dhcpd_ip_start, sizeof(conf->dhcpd_ip_start), FALSE); in dhd_conf_postinit_ioctls()
4938 (char *)&conf->dhcpd_ip_end, sizeof(conf->dhcpd_ip_end), FALSE); in dhd_conf_postinit_ioctls()
4940 conf->dhcpd_enable, 0, FALSE); in dhd_conf_postinit_ioctls()
4944 conf->frameburst, 0, FALSE); in dhd_conf_postinit_ioctls()
4953 if (dhd->conf->mtu) in dhd_conf_postinit_ioctls()
4954 dhd_change_mtu(dhd, dhd->conf->mtu, 0); in dhd_conf_postinit_ioctls()
4956 if (conf->chip == BCM4354_CHIP_ID || conf->chip == BCM4356_CHIP_ID || in dhd_conf_postinit_ioctls()
4957 conf->chip == BCM4371_CHIP_ID || conf->chip == BCM4359_CHIP_ID || in dhd_conf_postinit_ioctls()
4958 conf->chip == BCM43569_CHIP_ID || in dhd_conf_postinit_ioctls()
4959 conf->chip == BCM43751_CHIP_ID || conf->chip == BCM43752_CHIP_ID || in dhd_conf_postinit_ioctls()
4960 conf->chip == BCM4375_CHIP_ID) { in dhd_conf_postinit_ioctls()
4963 if (conf->chip == BCM4375_CHIP_ID) { in dhd_conf_postinit_ioctls()
4967 if (conf->chip == BCM43752_CHIP_ID || conf->chip == BCM4359_CHIP_ID) { in dhd_conf_postinit_ioctls()
4978 if (conf->fw_type == FW_TYPE_EZMESH) { in dhd_conf_postinit_ioctls()
4979 if (conf->chip == BCM4359_CHIP_ID) { in dhd_conf_postinit_ioctls()
4989 if (conf->devid == BCM43751_CHIP_ID) in dhd_conf_postinit_ioctls()
4991 if (conf->devid == BCM43751_D11AX_ID) in dhd_conf_postinit_ioctls()
5008 dhd_conf_set_wl_cmd(dhd, conf->wl_preinit, TRUE); in dhd_conf_postinit_ioctls()
5019 struct dhd_conf *conf = dhd->conf; in dhd_conf_free_preinit() local
5022 dhd_conf_free_mac_list(&conf->fw_by_mac); in dhd_conf_free_preinit()
5023 dhd_conf_free_mac_list(&conf->nv_by_mac); in dhd_conf_free_preinit()
5025 dhd_conf_free_chip_nv_path_list(&conf->nv_by_chip); in dhd_conf_free_preinit()
5026 dhd_conf_free_country_list(conf); in dhd_conf_free_preinit()
5027 dhd_conf_free_mchan_list(conf); in dhd_conf_free_preinit()
5029 if (conf->magic_pkt_filter_add) { in dhd_conf_free_preinit()
5030 kfree(conf->magic_pkt_filter_add); in dhd_conf_free_preinit()
5031 conf->magic_pkt_filter_add = NULL; in dhd_conf_free_preinit()
5034 if (conf->wl_preinit) { in dhd_conf_free_preinit()
5035 kfree(conf->wl_preinit); in dhd_conf_free_preinit()
5036 conf->wl_preinit = NULL; in dhd_conf_free_preinit()
5038 if (conf->wl_suspend) { in dhd_conf_free_preinit()
5039 kfree(conf->wl_suspend); in dhd_conf_free_preinit()
5040 conf->wl_suspend = NULL; in dhd_conf_free_preinit()
5042 if (conf->wl_resume) { in dhd_conf_free_preinit()
5043 kfree(conf->wl_resume); in dhd_conf_free_preinit()
5044 conf->wl_resume = NULL; in dhd_conf_free_preinit()
5046 if (conf->vndr_ie_assocreq) { in dhd_conf_free_preinit()
5047 kfree(conf->vndr_ie_assocreq); in dhd_conf_free_preinit()
5048 conf->vndr_ie_assocreq = NULL; in dhd_conf_free_preinit()
5055 struct dhd_conf *conf = dhd->conf; in dhd_conf_preinit() local
5060 conf->band = -1; in dhd_conf_preinit()
5061 memset(&conf->bw_cap, -1, sizeof(conf->bw_cap)); in dhd_conf_preinit()
5062 if (conf->chip == BCM43362_CHIP_ID || conf->chip == BCM4330_CHIP_ID) { in dhd_conf_preinit()
5063 strcpy(conf->cspec.country_abbrev, "ALL"); in dhd_conf_preinit()
5064 strcpy(conf->cspec.ccode, "ALL"); in dhd_conf_preinit()
5065 conf->cspec.rev = 0; in dhd_conf_preinit()
5067 else if (conf->chip == BCM4335_CHIP_ID || conf->chip == BCM4339_CHIP_ID || in dhd_conf_preinit()
5068 conf->chip == BCM4354_CHIP_ID || conf->chip == BCM4356_CHIP_ID || in dhd_conf_preinit()
5069 conf->chip == BCM4345_CHIP_ID || conf->chip == BCM4371_CHIP_ID || in dhd_conf_preinit()
5070 conf->chip == BCM43569_CHIP_ID || conf->chip == BCM4359_CHIP_ID || in dhd_conf_preinit()
5071 conf->chip == BCM4375_CHIP_ID) { in dhd_conf_preinit()
5072 strcpy(conf->cspec.country_abbrev, "CN"); in dhd_conf_preinit()
5073 strcpy(conf->cspec.ccode, "CN"); in dhd_conf_preinit()
5074 conf->cspec.rev = 38; in dhd_conf_preinit()
5077 strcpy(conf->cspec.country_abbrev, "CN"); in dhd_conf_preinit()
5078 strcpy(conf->cspec.ccode, "CN"); in dhd_conf_preinit()
5079 conf->cspec.rev = 0; in dhd_conf_preinit()
5081 memset(&conf->channels, 0, sizeof(wl_channel_list_t)); in dhd_conf_preinit()
5082 conf->ioctl_ver = WLC_IOCTL_VERSION; in dhd_conf_preinit()
5083 conf->roam_off = 1; in dhd_conf_preinit()
5084 conf->roam_off_suspend = 1; in dhd_conf_preinit()
5085 conf->roam_trigger[0] = -65; in dhd_conf_preinit()
5086 conf->roam_trigger[1] = WLC_BAND_ALL; in dhd_conf_preinit()
5087 conf->roam_scan_period[0] = 10; in dhd_conf_preinit()
5088 conf->roam_scan_period[1] = WLC_BAND_ALL; in dhd_conf_preinit()
5089 conf->roam_delta[0] = 10; in dhd_conf_preinit()
5090 conf->roam_delta[1] = WLC_BAND_ALL; in dhd_conf_preinit()
5091 conf->fullroamperiod = 20; in dhd_conf_preinit()
5092 conf->keep_alive_period = 30000; in dhd_conf_preinit()
5094 conf->garp = FALSE; in dhd_conf_preinit()
5096 conf->force_wme_ac = 0; in dhd_conf_preinit()
5097 memset(&conf->wme_sta, 0, sizeof(wme_param_t)); in dhd_conf_preinit()
5098 memset(&conf->wme_ap, 0, sizeof(wme_param_t)); in dhd_conf_preinit()
5100 memset(&conf->pkt_filter_add, 0, sizeof(conf_pkt_filter_add_t)); in dhd_conf_preinit()
5101 memset(&conf->pkt_filter_del, 0, sizeof(conf_pkt_filter_del_t)); in dhd_conf_preinit()
5103 conf->srl = -1; in dhd_conf_preinit()
5104 conf->lrl = -1; in dhd_conf_preinit()
5105 conf->bcn_timeout = 16; in dhd_conf_preinit()
5106 conf->disable_proptx = -1; in dhd_conf_preinit()
5107 conf->dhd_poll = -1; in dhd_conf_preinit()
5109 conf->use_rxchain = 0; in dhd_conf_preinit()
5110 conf->bus_rxglom = TRUE; in dhd_conf_preinit()
5111 conf->txglom_ext = FALSE; in dhd_conf_preinit()
5112 conf->tx_max_offset = 0; in dhd_conf_preinit()
5113 conf->txglomsize = SDPCM_DEFGLOM_SIZE; in dhd_conf_preinit()
5114 conf->txctl_tmo_fix = 300; in dhd_conf_preinit()
5115 conf->txglom_mode = SDPCM_TXGLOM_CPY; in dhd_conf_preinit()
5116 conf->deferred_tx_len = 0; in dhd_conf_preinit()
5117 conf->dhd_txminmax = 1; in dhd_conf_preinit()
5118 conf->txinrx_thres = -1; in dhd_conf_preinit()
5120 conf->ramsize = 0x80000; in dhd_conf_preinit()
5123 conf->intr_extn = FALSE; in dhd_conf_preinit()
5126 conf->rxlim_en = FALSE; in dhd_conf_preinit()
5129 conf->txseq_sync = FALSE; in dhd_conf_preinit()
5132 conf->oob_enabled_later = FALSE; in dhd_conf_preinit()
5135 conf->read_intr_mode = 0; in dhd_conf_preinit()
5137 conf->kso_try_max = 0; in dhd_conf_preinit()
5139 memset(&conf->kso_try_array, 0, sizeof(conf->kso_try_array)); in dhd_conf_preinit()
5143 conf->bus_deepsleep_disable = 1; in dhd_conf_preinit()
5144 conf->flow_ring_queue_threshold = FLOW_RING_QUEUE_THRESHOLD; in dhd_conf_preinit()
5145 conf->d2h_intr_method = -1; in dhd_conf_preinit()
5146 conf->d2h_intr_control = -1; in dhd_conf_preinit()
5147 conf->aspm = -1; in dhd_conf_preinit()
5148 conf->l1ss = -1; in dhd_conf_preinit()
5149 conf->enq_hdr_pkt = 0; in dhd_conf_preinit()
5151 conf->dpc_cpucore = -1; in dhd_conf_preinit()
5152 conf->rxf_cpucore = -1; in dhd_conf_preinit()
5153 conf->dhd_dpc_prio = -1; in dhd_conf_preinit()
5154 conf->frameburst = -1; in dhd_conf_preinit()
5155 conf->deepsleep = FALSE; in dhd_conf_preinit()
5156 conf->pm = -1; in dhd_conf_preinit()
5157 conf->pm_in_suspend = -1; in dhd_conf_preinit()
5158 conf->insuspend = 0; in dhd_conf_preinit()
5159 conf->suspend_mode = PM_NOTIFIER; in dhd_conf_preinit()
5160 conf->suspend_bcn_li_dtim = -1; in dhd_conf_preinit()
5161 conf->rekey_offload = FALSE; in dhd_conf_preinit()
5164 conf->wowl = WL_WOWL_NET|WL_WOWL_DIS|WL_WOWL_BCN; in dhd_conf_preinit()
5165 conf->insuspend |= (WOWL_IN_SUSPEND | NO_TXDATA_IN_SUSPEND); in dhd_conf_preinit()
5167 if (conf->suspend_mode == PM_NOTIFIER || conf->suspend_mode == SUSPEND_MODE_2) in dhd_conf_preinit()
5168 conf->insuspend |= (NO_TXDATA_IN_SUSPEND | NO_TXCTL_IN_SUSPEND); in dhd_conf_preinit()
5169 conf->suspended = FALSE; in dhd_conf_preinit()
5170 memset(&conf->bssid_insuspend, 0, ETHER_ADDR_LEN); in dhd_conf_preinit()
5172 memset(&conf->resume_eventmask, 0, sizeof(conf->resume_eventmask)); in dhd_conf_preinit()
5173 conf->wlfc = FALSE; in dhd_conf_preinit()
5176 memset(&conf->hw_ether, 0, sizeof(conf->hw_ether)); in dhd_conf_preinit()
5179 conf->dhcpc_enable = -1; in dhd_conf_preinit()
5180 conf->dhcpd_enable = -1; in dhd_conf_preinit()
5182 conf->orphan_move = 0; in dhd_conf_preinit()
5184 conf->tsq = 10; in dhd_conf_preinit()
5186 conf->tsq = 0; in dhd_conf_preinit()
5190 conf->tcpack_sup_mode = TCPACK_SUP_HOLD; in dhd_conf_preinit()
5192 conf->tcpack_sup_mode = TCPACK_SUP_OFF; in dhd_conf_preinit()
5194 conf->tcpack_sup_ratio = CUSTOM_TCPACK_SUPP_RATIO; in dhd_conf_preinit()
5195 conf->tcpack_sup_delay = CUSTOM_TCPACK_DELAY_TIME; in dhd_conf_preinit()
5197 conf->pktprio8021x = -1; in dhd_conf_preinit()
5198 conf->ctrl_resched = 2; in dhd_conf_preinit()
5199 conf->rxcnt_timeout = 3; in dhd_conf_preinit()
5200 conf->in4way = STA_NO_SCAN_IN4WAY | STA_WAIT_DISCONNECTED | in dhd_conf_preinit()
5202 if (conf->chip == BCM43752_CHIP_ID) in dhd_conf_preinit()
5203 conf->war = SET_CHAN_INCONN | FW_REINIT_INCSA | FW_REINIT_EMPTY_SCAN; in dhd_conf_preinit()
5205 conf->war = 0; in dhd_conf_preinit()
5207 conf->war |= P2P_AP_MAC_CONFLICT; in dhd_conf_preinit()
5210 conf->proptx_maxcnt_2g = 46; in dhd_conf_preinit()
5211 conf->proptx_maxcnt_5g = WL_TXSTATUS_FREERUNCTR_MASK; in dhd_conf_preinit()
5214 conf->data_drop_mode = NO_DATA_DROP; in dhd_conf_preinit()
5215 conf->tput_monitor_ms = 0; in dhd_conf_preinit()
5217 if (conf->chip == BCM43752_CHIP_ID || conf->chip == BCM4375_CHIP_ID) in dhd_conf_preinit()
5218 conf->doflow_tput_thresh = 200; in dhd_conf_preinit()
5220 conf->doflow_tput_thresh = 9999; in dhd_conf_preinit()
5221 if (conf->doflow_tput_thresh > 0 && conf->doflow_tput_thresh < 9999) in dhd_conf_preinit()
5222 conf->tput_monitor_ms = 1000; in dhd_conf_preinit()
5226 conf->scan_intput = SCAN_CURCHAN_INTPUT; in dhd_conf_preinit()
5227 conf->scan_busy_thresh = 10; in dhd_conf_preinit()
5228 conf->scan_busy_tmo = 120; in dhd_conf_preinit()
5229 if (conf->chip == BCM43752_CHIP_ID || conf->chip == BCM4375_CHIP_ID) in dhd_conf_preinit()
5230 conf->scan_tput_thresh = 100; in dhd_conf_preinit()
5232 conf->scan_tput_thresh = 9999; in dhd_conf_preinit()
5233 if (conf->scan_tput_thresh > 0 && conf->scan_tput_thresh < 9999) in dhd_conf_preinit()
5234 conf->tput_monitor_ms = 1000; in dhd_conf_preinit()
5237 conf->tput_patch = FALSE; in dhd_conf_preinit()
5238 conf->mtu = 0; in dhd_conf_preinit()
5239 conf->pktsetsum = FALSE; in dhd_conf_preinit()
5242 conf->xps_cpus = FALSE; in dhd_conf_preinit()
5245 conf->rps_cpus = FALSE; in dhd_conf_preinit()
5248 conf->fwchk = FALSE; in dhd_conf_preinit()
5251 memset(conf->isam_init, 0, sizeof(conf->isam_init)); in dhd_conf_preinit()
5252 memset(conf->isam_config, 0, sizeof(conf->isam_config)); in dhd_conf_preinit()
5253 memset(conf->isam_enable, 0, sizeof(conf->isam_enable)); in dhd_conf_preinit()
5256 if (conf->chip == BCM43012_CHIP_ID || in dhd_conf_preinit()
5257 conf->chip == BCM4335_CHIP_ID || conf->chip == BCM4339_CHIP_ID || in dhd_conf_preinit()
5258 conf->chip == BCM43454_CHIP_ID || conf->chip == BCM4345_CHIP_ID || in dhd_conf_preinit()
5259 conf->chip == BCM4354_CHIP_ID || conf->chip == BCM4356_CHIP_ID || in dhd_conf_preinit()
5260 conf->chip == BCM4345_CHIP_ID || conf->chip == BCM4371_CHIP_ID || in dhd_conf_preinit()
5261 conf->chip == BCM4359_CHIP_ID || in dhd_conf_preinit()
5262 conf->chip == BCM43751_CHIP_ID || conf->chip == BCM43752_CHIP_ID || in dhd_conf_preinit()
5263 conf->chip == BCM4375_CHIP_ID) { in dhd_conf_preinit()
5264 conf->intr_extn = TRUE; in dhd_conf_preinit()
5267 if ((conf->chip == BCM43430_CHIP_ID && conf->chiprev == 2) || in dhd_conf_preinit()
5268 conf->chip == BCM43012_CHIP_ID || in dhd_conf_preinit()
5269 conf->chip == BCM4335_CHIP_ID || conf->chip == BCM4339_CHIP_ID || in dhd_conf_preinit()
5270 conf->chip == BCM43454_CHIP_ID || conf->chip == BCM4345_CHIP_ID || in dhd_conf_preinit()
5271 conf->chip == BCM4354_CHIP_ID || conf->chip == BCM4356_CHIP_ID || in dhd_conf_preinit()
5272 conf->chip == BCM4345_CHIP_ID || conf->chip == BCM4371_CHIP_ID || in dhd_conf_preinit()
5273 conf->chip == BCM43569_CHIP_ID || conf->chip == BCM4359_CHIP_ID || in dhd_conf_preinit()
5274 conf->chip == BCM43751_CHIP_ID || conf->chip == BCM43752_CHIP_ID || in dhd_conf_preinit()
5275 conf->chip == BCM4375_CHIP_ID) { in dhd_conf_preinit()
5278 conf->tcpack_sup_mode = TCPACK_SUP_REPLACE; in dhd_conf_preinit()
5285 conf->frameburst = 1; in dhd_conf_preinit()
5287 conf->dhd_txminmax = -1; in dhd_conf_preinit()
5288 conf->txinrx_thres = 128; in dhd_conf_preinit()
5291 conf->orphan_move = 1; in dhd_conf_preinit()
5293 conf->orphan_move = 0; in dhd_conf_preinit()
5297 if (conf->chip == BCM43751_CHIP_ID || conf->chip == BCM43752_CHIP_ID || in dhd_conf_preinit()
5298 conf->chip == BCM4375_CHIP_ID) { in dhd_conf_preinit()
5299 conf->tput_patch = TRUE; in dhd_conf_preinit()
5306 if (conf->chip == BCM43362_CHIP_ID || conf->chip == BCM4330_CHIP_ID || in dhd_conf_preinit()
5307 conf->chip == BCM43340_CHIP_ID || conf->chip == BCM43341_CHIP_ID || in dhd_conf_preinit()
5308 conf->chip == BCM4334_CHIP_ID || conf->chip == BCM4324_CHIP_ID) { in dhd_conf_preinit()
5309 conf->txglom_ext = TRUE; in dhd_conf_preinit()
5311 conf->txglom_ext = FALSE; in dhd_conf_preinit()
5313 if (conf->chip == BCM43362_CHIP_ID || conf->chip == BCM4330_CHIP_ID) { in dhd_conf_preinit()
5314 conf->txglom_bucket_size = 1680; // fixed value, don't change in dhd_conf_preinit()
5315 conf->txglomsize = 6; in dhd_conf_preinit()
5317 if (conf->chip == BCM4334_CHIP_ID || conf->chip == BCM43340_CHIP_ID || in dhd_conf_preinit()
5318 conf->chip == BCM43341_CHIP_ID || conf->chip == BCM4324_CHIP_ID) { in dhd_conf_preinit()
5319 conf->txglom_bucket_size = 1684; // fixed value, don't change in dhd_conf_preinit()
5320 conf->txglomsize = 16; in dhd_conf_preinit()
5323 if (conf->txglomsize > SDPCM_MAXGLOM_SIZE) in dhd_conf_preinit()
5324 conf->txglomsize = SDPCM_MAXGLOM_SIZE; in dhd_conf_preinit()
5326 init_waitqueue_head(&conf->event_complete); in dhd_conf_preinit()
5329 conf->d2h_intr_control = 0; in dhd_conf_preinit()
5339 struct dhd_conf *conf = dhd->conf; in dhd_conf_reset() local
5342 memset(conf, 0, sizeof(dhd_conf_t)); in dhd_conf_reset()
5349 dhd_conf_t *conf; in dhd_conf_attach() local
5353 if (dhd->conf != NULL) { in dhd_conf_attach()
5358 if (!(conf = MALLOC(dhd->osh, sizeof(dhd_conf_t)))) { in dhd_conf_attach()
5362 memset(conf, 0, sizeof(dhd_conf_t)); in dhd_conf_attach()
5364 dhd->conf = conf; in dhd_conf_attach()
5369 if (conf != NULL) in dhd_conf_attach()
5370 MFREE(dhd->osh, conf, sizeof(dhd_conf_t)); in dhd_conf_attach()
5377 struct dhd_conf *conf = dhd->conf; in dhd_conf_detach() local
5380 if (dhd->conf) { in dhd_conf_detach()
5382 MFREE(dhd->osh, conf, sizeof(dhd_conf_t)); in dhd_conf_detach()
5384 dhd->conf = NULL; in dhd_conf_detach()