diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
| -rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 17 | 
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 0ac5c589ddc..a511cccc9f0 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c @@ -13,9 +13,7 @@  	GNU General Public License for more details.  	You should have received a copy of the GNU General Public License -	along with this program; if not, write to the -	Free Software Foundation, Inc., -	59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +	along with this program; if not, see <http://www.gnu.org/licenses/>.   */  /* @@ -26,7 +24,6 @@  #include <linux/delay.h>  #include <linux/etherdevice.h> -#include <linux/init.h>  #include <linux/kernel.h>  #include <linux/module.h>  #include <linux/pci.h> @@ -1684,8 +1681,13 @@ static int rt2500pci_init_eeprom(struct rt2x00_dev *rt2x00dev)  	/*  	 * Detect if this device has an hardware controlled radio.  	 */ -	if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) +	if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) {  		__set_bit(CAPABILITY_HW_BUTTON, &rt2x00dev->cap_flags); +		/* +		 * On this device RFKILL initialized during probe does not work. +		 */ +		__set_bit(REQUIRE_DELAYED_RFKILL, &rt2x00dev->cap_flags); +	}  	/*  	 * Check if the BBP tuning should be enabled. @@ -1880,6 +1882,11 @@ static int rt2500pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)  						   EEPROM_MAC_ADDR_0));  	/* +	 * Disable powersaving as default. +	 */ +	rt2x00dev->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; + +	/*  	 * Initialize hw_mode information.  	 */  	spec->supported_bands = SUPPORT_BAND_2GHZ;  | 
