diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-12-18 21:37:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:56 -0500 |
commit | a3139c5956702c9ff957ac9fe2d902de355b063e (patch) | |
tree | 50df5afc7b5867b13421c6be19ff1e020c18c745 /drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c | |
parent | 40b8ec0bfa2d96c9feae2bc1596e9b427c77b8da (diff) |
iwl3945: Remove DRV_NAME dependenies
As DRV_NAME is defined in 2 different header files, including both is not
possible.
This patch defines this constant from iwl3945-base.c and iwl-agn.c. It also
redefines the IWL_ERROR and IWL_WARNING macros to use dev_printk, as the
IWL_DEBUG_* macros do.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Acked-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c index b8137eeae1db..392d96df0b6c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd-check.c | |||
@@ -40,10 +40,11 @@ | |||
40 | * be #ifdef'd out once the driver is stable and folks aren't actively | 40 | * be #ifdef'd out once the driver is stable and folks aren't actively |
41 | * making changes | 41 | * making changes |
42 | */ | 42 | */ |
43 | int iwl_agn_check_rxon_cmd(struct iwl_rxon_cmd *rxon) | 43 | int iwl_agn_check_rxon_cmd(struct iwl_priv *priv) |
44 | { | 44 | { |
45 | int error = 0; | 45 | int error = 0; |
46 | int counter = 1; | 46 | int counter = 1; |
47 | struct iwl_rxon_cmd *rxon = &priv->staging_rxon; | ||
47 | 48 | ||
48 | if (rxon->flags & RXON_FLG_BAND_24G_MSK) { | 49 | if (rxon->flags & RXON_FLG_BAND_24G_MSK) { |
49 | error |= le32_to_cpu(rxon->flags & | 50 | error |= le32_to_cpu(rxon->flags & |