aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 1e12e7340c90..42f9b17327c3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1195,7 +1195,7 @@ struct iwl_priv {
1195 u32 last_beacon_time; 1195 u32 last_beacon_time;
1196 u64 last_tsf; 1196 u64 last_tsf;
1197 1197
1198 /* eeprom */ 1198 /* eeprom -- this is in the card's little endian byte order */
1199 u8 *eeprom; 1199 u8 *eeprom;
1200 int nvm_device_type; 1200 int nvm_device_type;
1201 struct iwl_eeprom_calib_info *calib_info; 1201 struct iwl_eeprom_calib_info *calib_info;
@@ -1383,4 +1383,15 @@ static inline int is_channel_ibss(const struct iwl_channel_info *ch)
1383 return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0; 1383 return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0;
1384} 1384}
1385 1385
1386static inline void __iwl_free_pages(struct iwl_priv *priv, struct page *page)
1387{
1388 __free_pages(page, priv->hw_params.rx_page_order);
1389 priv->alloc_rxb_page--;
1390}
1391
1392static inline void iwl_free_pages(struct iwl_priv *priv, unsigned long page)
1393{
1394 free_pages(page, priv->hw_params.rx_page_order);
1395 priv->alloc_rxb_page--;
1396}
1386#endif /* __iwl_dev_h__ */ 1397#endif /* __iwl_dev_h__ */