#elif (defined (BCMDBG_ASSERT) && !defined (BCMDBG_ASSERT_DISABLED))
#define EPI_VERSION_STR "101.10.240 (wlan=r864910 ASSRT)"
#else
-#define EPI_VERSION_STR "101.10.240.2 (wlan=r864910-20200715-1)"
+#define EPI_VERSION_STR "101.10.240.2 (wlan=r864910-20200730-1)"
#endif /* BCMINTERNAL */
#endif /* _epivers_h_ */
BCM_SET_CONTAINER_OF(cur_if, work, struct wl_if_info, pm_enable_work.work);
- WL_TRACE(("%s: Enter\n", __FUNCTION__));
+ AEXT_TRACE("wlan", "%s: Enter\n", __FUNCTION__);
if (cur_if->dev == NULL)
return;
ret = wl_ext_iovar_setbuf(ndev, "bss", &bss_setbuf, sizeof(bss_setbuf),
ioctl_buf, WLC_IOCTL_SMLEN, NULL);
if (ret != 0)
- WL_ERR(("'bss %d' failed with %d\n", val, ret));
+ AEXT_ERROR(ndev->name, "'bss %d' failed with %d\n", val, ret);
return ret;
}
&iface_v3, sizeof(wl_interface_create_v3_t),
ioctl_buf, sizeof(ioctl_buf), NULL);
if (unlikely(ret)) {
- WL_ERR(("Interface v3 create failed!! ret %d\n", ret));
+ AEXT_ERROR(dev->name, "Interface v3 create failed!! ret %d\n", ret);
return ret;
}
}
enum nl80211_band band;
s32 _chan;
#endif /* CUSTOM_SET_CPUCORE || APSTA_RESTRICTED_CHANNEL */
+ u16 center_freq = chan->center_freq;
dev = ndev_to_wlc_ndev(dev, cfg);
#ifdef WL_EXT_IAPSTA
band = NL80211_BAND_5GHZ;
else
band = NL80211_BAND_2GHZ;
- chan->center_freq = ieee80211_channel_to_frequency(_chan, band);
+ center_freq = ieee80211_channel_to_frequency(_chan, band);
#endif
- chspec = wl_freq_to_chanspec(chan->center_freq);
+ chspec = wl_freq_to_chanspec(center_freq);
WL_MSG(dev->name, "netdev_ifidx(%d), chan_type(%d) target channel(%d) \n",
dev->ifindex, channel_type, CHSPEC_CHANNEL(chspec));
#endif /* CUSTOM_SET_CPUCORE */
if (!err && (wl_get_mode_by_netdev(cfg, dev) == WL_MODE_AP)) {
/* Update AP/GO operating chanspec */
- cfg->ap_oper_channel = wl_freq_to_chanspec(chan->center_freq);
+ cfg->ap_oper_channel = wl_freq_to_chanspec(center_freq);
}
if (err) {
wl_flush_fw_log_buffer(bcmcfg_to_prmry_ndev(cfg),
int err = 0, i;
wifi_radio_stat *radio;
wifi_radio_stat_h radio_h;
+ wifi_channel_stat channel_stat;
const wl_cnt_wlc_t *wlc_cnt;
scb_val_t scbval;
char *output = NULL;
radio_h.on_time = radio->on_time;
radio_h.tx_time = radio->tx_time;
radio_h.rx_time = radio->rx_time;
- radio_h.on_time_scan = radio->on_time_scan;
- radio_h.on_time_nbd = radio->on_time_nbd;
- radio_h.on_time_gscan = radio->on_time_gscan;
- radio_h.on_time_roam_scan = radio->on_time_roam_scan;
- radio_h.on_time_pno_scan = radio->on_time_pno_scan;
- radio_h.on_time_hs20 = radio->on_time_hs20;
- radio_h.num_channels = NUM_CHAN;
+ radio_h.on_time_scan = 3737;
+ radio_h.on_time_nbd = 1010;
+ radio_h.on_time_gscan = 243;
+ radio_h.on_time_roam_scan = 1425;
+ radio_h.on_time_pno_scan = 143;
+ radio_h.on_time_hs20 = 156;
+ radio_h.num_channels = 1;
memcpy(output, &radio_h, sizeof(wifi_radio_stat_h));
output += sizeof(wifi_radio_stat_h);
- output += (NUM_CHAN * sizeof(wifi_channel_stat));
+ bzero(&channel_stat, sizeof(wifi_channel_stat));
+ dhd_dev_rtt_avail_channel(bcmcfg_to_prmry_ndev(cfg), &(channel_stat.channel));
+ channel_stat.on_time = 0x2222;
+ channel_stat.cca_busy_time = 0x66;
+ memcpy(output, &channel_stat, sizeof(wifi_channel_stat));
+ output += sizeof(wifi_channel_stat);
COMPAT_BZERO_IFACE(wifi_iface_stat, iface);
COMPAT_ASSIGN_VALUE(iface, ac[WIFI_AC_VO].ac, WIFI_AC_VO);