Added gauner1986's hack to force 802.11n support on.
This commit is contained in:
parent
3481530a11
commit
2dfc0915ee
@ -870,7 +870,6 @@ 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
|
||||
*/
|
||||
@ -945,12 +944,6 @@ 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));
|
||||
|
||||
|
@ -93,10 +93,7 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr)
|
||||
|
||||
int wifi_get_dot11n_enable(void)
|
||||
{
|
||||
if (wifi_control_data && wifi_control_data->dot11n_enable) {
|
||||
return wifi_control_data->dot11n_enable;
|
||||
}
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int wifi_set_carddetect(int on)
|
||||
|
Loading…
Reference in New Issue
Block a user