|
@@ -983,6 +983,7 @@ static int rt2800pci_validate_eeprom(struct rt2x00_dev *rt2x00dev)
|
|
|
static int rt2800pci_probe_hw(struct rt2x00_dev *rt2x00dev)
|
|
|
{
|
|
|
int retval;
|
|
|
+ u32 reg;
|
|
|
|
|
|
/*
|
|
|
* Allocate eeprom data.
|
|
@@ -995,6 +996,14 @@ static int rt2800pci_probe_hw(struct rt2x00_dev *rt2x00dev)
|
|
|
if (retval)
|
|
|
return retval;
|
|
|
|
|
|
+ /*
|
|
|
+ * Enable rfkill polling by setting GPIO direction of the
|
|
|
+ * rfkill switch GPIO pin correctly.
|
|
|
+ */
|
|
|
+ rt2x00pci_register_read(rt2x00dev, GPIO_CTRL_CFG, ®);
|
|
|
+ rt2x00_set_field32(®, GPIO_CTRL_CFG_GPIOD_BIT2, 1);
|
|
|
+ rt2x00pci_register_write(rt2x00dev, GPIO_CTRL_CFG, reg);
|
|
|
+
|
|
|
/*
|
|
|
* Initialize hw specifications.
|
|
|
*/
|