Revert "Added gauner1986's hack to force 802.11n support on."

This reverts commit 2dfc0915ee.
This commit is contained in:
Jon Benson 2010-12-13 11:52:00 +11:00
parent 51e39b55ac
commit a29154193a
2 changed files with 11 additions and 1 deletions

View File

@ -870,6 +870,7 @@ dhd_preinit_ioctls(dhd_pub_t *dhd)
uint32 dongle_align = DHD_SDALIGN;
uint32 glom = 0;
uint32 nmode = 0;
uint bcn_timeout = 5;
/* Disable ARP off-load first
*/
@ -944,6 +945,12 @@ dhd_preinit_ioctls(dhd_pub_t *dhd)
bcm_mkiovar("roam_off", (char *)&roamvar, 4, iovbuf, sizeof(iovbuf));
dhdcdc_set_ioctl(dhd, 0, WLC_SET_VAR, iovbuf, sizeof(iovbuf));
if(!wifi_get_dot11n_enable()) {
/* Disable nmode as default */
bcm_mkiovar("nmode", (char *)&nmode, 4, iovbuf, sizeof(iovbuf));
dhdcdc_set_ioctl(dhd, 0, WLC_SET_VAR, iovbuf, sizeof(iovbuf));
myprintf("wifi: Disable 802.11n\n");
}
/* Force STA UP */
dhdcdc_set_ioctl(dhd, 0, WLC_UP, (char *)&up, sizeof(up));

View File

@ -93,7 +93,10 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr)
int wifi_get_dot11n_enable(void)
{
return 1;
if (wifi_control_data && wifi_control_data->dot11n_enable) {
return wifi_control_data->dot11n_enable;
}
return 0;
}
int wifi_set_carddetect(int on)