Skip to content

Commit

Permalink
iwmc3200wifi: Set wireless mode correctly
Browse files Browse the repository at this point in the history
Set the wireless mode with regard to both the driver's configuration
and the device's EEPROM result.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Nov 28, 2009
1 parent 0bed08d commit 2351178
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/iwmc3200wifi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,12 +701,12 @@ static int __iwm_up(struct iwm_priv *iwm)

/*
* Read our SKU capabilities.
* If it's valid, we overwrite the wireless mode conf entry and the
* current profile one.
* If it's valid, we AND the configured wireless mode with the
* device EEPROM value as the current profile wireless mode.
*/
wireless_mode = iwm_eeprom_wireless_mode(iwm);
if (wireless_mode) {
iwm->conf.wireless_mode = wireless_mode;
iwm->conf.wireless_mode &= wireless_mode;
if (iwm->umac_profile)
iwm->umac_profile->wireless_mode =
iwm->conf.wireless_mode;
Expand Down

0 comments on commit 2351178

Please sign in to comment.