Merge branch 'upstream-fixes' into upstream
This commit is contained in:
commit
4c2be501b7
2 changed files with 4 additions and 1 deletions
|
@ -1042,6 +1042,9 @@ static int prism2_reset_port(struct net_device *dev)
|
|||
dev->name, local->fragm_threshold);
|
||||
}
|
||||
|
||||
/* Some firmwares lose antenna selection settings on reset */
|
||||
(void) hostap_set_antsel(local);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ spectrum_reset(struct pcmcia_device *link, int idle)
|
|||
u_int save_cor;
|
||||
|
||||
/* Doing it if hardware is gone is guaranteed crash */
|
||||
if (pcmcia_dev_present(link))
|
||||
if (!pcmcia_dev_present(link))
|
||||
return -ENODEV;
|
||||
|
||||
/* Save original COR value */
|
||||
|
|
Loading…
Reference in a new issue