static int rt2400pci_probe_hw(struct rt2x00_dev *rt2x00dev) { int retval; /* * Allocate eeprom data. */ retval = rt2400pci_validate_eeprom(rt2x00dev); if (retval) return retval; retval = rt2400pci_init_eeprom(rt2x00dev); if (retval) return retval; /* * Initialize hw specifications. */ retval = rt2400pci_probe_hw_mode(rt2x00dev); if (retval) return retval; /* * This device requires the atim queue and DMA-mapped skbs. */ __set_bit(DRIVER_REQUIRE_ATIM_QUEUE, &rt2x00dev->flags); __set_bit(DRIVER_REQUIRE_DMA, &rt2x00dev->flags); /* * Set the rssi offset. */ rt2x00dev->rssi_offset = DEFAULT_RSSI_OFFSET; return 0; }
static int rt2400pci_probe_hw(struct rt2x00_dev *rt2x00dev) { int retval; /* * Allocate eeprom data. */ retval = rt2400pci_validate_eeprom(rt2x00dev); if (retval) return retval; retval = rt2400pci_init_eeprom(rt2x00dev); if (retval) return retval; /* * Initialize hw specifications. */ rt2400pci_probe_hw_mode(rt2x00dev); /* * This device requires the beacon ring */ __set_bit(DRIVER_REQUIRE_BEACON_RING, &rt2x00dev->flags); /* * Set the rssi offset. */ rt2x00dev->rssi_offset = DEFAULT_RSSI_OFFSET; return 0; }
static int rt2400pci_probe_hw(struct rt2x00_dev *rt2x00dev) { int retval; retval = rt2400pci_validate_eeprom(rt2x00dev); if (retval) return retval; retval = rt2400pci_init_eeprom(rt2x00dev); if (retval) return retval; retval = rt2400pci_probe_hw_mode(rt2x00dev); if (retval) return retval; __set_bit(REQUIRE_ATIM_QUEUE, &rt2x00dev->cap_flags); __set_bit(REQUIRE_DMA, &rt2x00dev->cap_flags); __set_bit(REQUIRE_SW_SEQNO, &rt2x00dev->cap_flags); rt2x00dev->rssi_offset = DEFAULT_RSSI_OFFSET; return 0; }