Make sure BBP is ready before writing to it
From DragonflyBSD
This commit is contained in:
parent
94aebeb732
commit
b69cd173f5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rt2560.c,v 1.16 2007/12/23 22:21:56 joerg Exp $ */
|
||||
/* $NetBSD: rt2560.c,v 1.17 2008/01/09 20:21:23 degroote Exp $ */
|
||||
/* $OpenBSD: rt2560.c,v 1.15 2006/04/20 20:31:12 miod Exp $ */
|
||||
/* $FreeBSD: rt2560.c,v 1.3 2006/03/21 21:15:43 damien Exp $*/
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
|||
* http://www.ralinktech.com/
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rt2560.c,v 1.16 2007/12/23 22:21:56 joerg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rt2560.c,v 1.17 2008/01/09 20:21:23 degroote Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -2815,8 +2815,6 @@ rt2560_init(struct ifnet *ifp)
|
|||
/* set basic rate set (will be updated later) */
|
||||
RAL_WRITE(sc, RT2560_ARSP_PLCP_1, 0x153);
|
||||
|
||||
rt2560_set_txantenna(sc, 1);
|
||||
rt2560_set_rxantenna(sc, 1);
|
||||
rt2560_update_slot(ifp);
|
||||
rt2560_update_plcp(sc);
|
||||
rt2560_update_led(sc, 0, 0);
|
||||
|
@ -2829,6 +2827,9 @@ rt2560_init(struct ifnet *ifp)
|
|||
return EIO;
|
||||
}
|
||||
|
||||
rt2560_set_txantenna(sc, 1);
|
||||
rt2560_set_rxantenna(sc, 1);
|
||||
|
||||
/* set default BSS channel */
|
||||
ic->ic_bss->ni_chan = ic->ic_ibss_chan;
|
||||
rt2560_set_chan(sc, ic->ic_bss->ni_chan);
|
||||
|
|
Loading…
Reference in New Issue