Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wlcore: use all AP basic rates as default

Sometimes we get a BSS_CHANGED_BEACON_ENABLED event before the basic
rates have been properly set. To avoid problems with the firmware not
expecting to receive frames at rates that are not set during
CMD_START_ROLE, we now start with all basic rates by default.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>

+12 -3
+12 -3
drivers/net/wireless/ti/wlcore/main.c
··· 1846 1846 wl12xx_allocate_rate_policy(wl, &wlvif->sta.basic_rate_idx); 1847 1847 wl12xx_allocate_rate_policy(wl, &wlvif->sta.ap_rate_idx); 1848 1848 wl12xx_allocate_rate_policy(wl, &wlvif->sta.p2p_rate_idx); 1849 + wlvif->basic_rate_set = CONF_TX_RATE_MASK_BASIC; 1850 + wlvif->basic_rate = CONF_TX_RATE_MASK_BASIC; 1851 + wlvif->rate_set = CONF_TX_RATE_MASK_BASIC; 1849 1852 } else { 1850 1853 /* init ap data */ 1851 1854 wlvif->ap.bcast_hlid = WL12XX_INVALID_LINK_ID; ··· 1858 1855 for (i = 0; i < CONF_TX_MAX_AC_COUNT; i++) 1859 1856 wl12xx_allocate_rate_policy(wl, 1860 1857 &wlvif->ap.ucast_rate_idx[i]); 1858 + wlvif->basic_rate_set = CONF_TX_AP_ENABLED_RATES; 1859 + /* 1860 + * TODO: check if basic_rate shouldn't be 1861 + * wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); 1862 + * instead (the same thing for STA above). 1863 + */ 1864 + wlvif->basic_rate = CONF_TX_AP_ENABLED_RATES; 1865 + /* TODO: this seems to be used only for STA, check it */ 1866 + wlvif->rate_set = CONF_TX_AP_ENABLED_RATES; 1861 1867 } 1862 1868 1863 1869 wlvif->bitrate_masks[IEEE80211_BAND_2GHZ] = wl->conf.tx.basic_rate; 1864 1870 wlvif->bitrate_masks[IEEE80211_BAND_5GHZ] = wl->conf.tx.basic_rate_5; 1865 - wlvif->basic_rate_set = CONF_TX_RATE_MASK_BASIC; 1866 - wlvif->basic_rate = CONF_TX_RATE_MASK_BASIC; 1867 - wlvif->rate_set = CONF_TX_RATE_MASK_BASIC; 1868 1871 wlvif->beacon_int = WL1271_DEFAULT_BEACON_INT; 1869 1872 1870 1873 /*