rt2x00: Fix rfkill polling prior to interface start.
We need to program the rfkill switch GPIO pin direction to input at device initialization time, not only when the interface is brought up. Doing this only when the interface is brought up could lead to rfkill detecting the switch is turned on erroneously and inability to create the interface and bringing it up. Reported-and-tested-by: Andreas Messer <andi@bastelmap.de> Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Cc: <stable@vger.kernel.org> Acked-by: Ivo Van Doorn <ivdoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
6ced58a5db
commit
a396e10019
@@ -282,6 +282,9 @@ struct hw_pairwise_ta_entry {
|
||||
#define MAC_CSR13_BIT10 FIELD32(0x00000400)
|
||||
#define MAC_CSR13_BIT11 FIELD32(0x00000800)
|
||||
#define MAC_CSR13_BIT12 FIELD32(0x00001000)
|
||||
#define MAC_CSR13_BIT13 FIELD32(0x00002000)
|
||||
#define MAC_CSR13_BIT14 FIELD32(0x00004000)
|
||||
#define MAC_CSR13_BIT15 FIELD32(0x00008000)
|
||||
|
||||
/*
|
||||
* MAC_CSR14: LED control register.
|
||||
|
Reference in New Issue
Block a user