|
@@ -183,7 +183,7 @@ static int iwl3945_rate_scale_flush_windows(struct iwl3945_rs_sta *rs_sta)
|
|
int unflushed = 0;
|
|
int unflushed = 0;
|
|
int i;
|
|
int i;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
- struct iwl_priv *priv = rs_sta->priv;
|
|
|
|
|
|
+ struct iwl_priv *priv __maybe_unused = rs_sta->priv;
|
|
|
|
|
|
/*
|
|
/*
|
|
* For each rate, if we have collected data on that rate
|
|
* For each rate, if we have collected data on that rate
|
|
@@ -216,7 +216,7 @@ static int iwl3945_rate_scale_flush_windows(struct iwl3945_rs_sta *rs_sta)
|
|
static void iwl3945_bg_rate_scale_flush(unsigned long data)
|
|
static void iwl3945_bg_rate_scale_flush(unsigned long data)
|
|
{
|
|
{
|
|
struct iwl3945_rs_sta *rs_sta = (void *)data;
|
|
struct iwl3945_rs_sta *rs_sta = (void *)data;
|
|
- struct iwl_priv *priv = rs_sta->priv;
|
|
|
|
|
|
+ struct iwl_priv *priv __maybe_unused = rs_sta->priv;
|
|
int unflushed = 0;
|
|
int unflushed = 0;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
u32 packet_count, duration, pps;
|
|
u32 packet_count, duration, pps;
|
|
@@ -290,7 +290,7 @@ static void iwl3945_collect_tx_data(struct iwl3945_rs_sta *rs_sta,
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
s32 fail_count;
|
|
s32 fail_count;
|
|
- struct iwl_priv *priv = rs_sta->priv;
|
|
|
|
|
|
+ struct iwl_priv *priv __maybe_unused = rs_sta->priv;
|
|
|
|
|
|
if (!retries) {
|
|
if (!retries) {
|
|
IWL_DEBUG_RATE("leave: retries == 0 -- should be at least 1\n");
|
|
IWL_DEBUG_RATE("leave: retries == 0 -- should be at least 1\n");
|
|
@@ -438,7 +438,7 @@ static void rs_free_sta(void *iwl_priv, struct ieee80211_sta *sta,
|
|
{
|
|
{
|
|
struct iwl3945_sta_priv *psta = (void *) sta->drv_priv;
|
|
struct iwl3945_sta_priv *psta = (void *) sta->drv_priv;
|
|
struct iwl3945_rs_sta *rs_sta = priv_sta;
|
|
struct iwl3945_rs_sta *rs_sta = priv_sta;
|
|
- struct iwl_priv *priv = rs_sta->priv;
|
|
|
|
|
|
+ struct iwl_priv *priv __maybe_unused = rs_sta->priv;
|
|
|
|
|
|
psta->rs_sta = NULL;
|
|
psta->rs_sta = NULL;
|
|
|
|
|
|
@@ -556,7 +556,7 @@ static u16 iwl3945_get_adjacent_rate(struct iwl3945_rs_sta *rs_sta,
|
|
{
|
|
{
|
|
u8 high = IWL_RATE_INVALID;
|
|
u8 high = IWL_RATE_INVALID;
|
|
u8 low = IWL_RATE_INVALID;
|
|
u8 low = IWL_RATE_INVALID;
|
|
- struct iwl_priv *priv = rs_sta->priv;
|
|
|
|
|
|
+ struct iwl_priv *priv __maybe_unused = rs_sta->priv;
|
|
|
|
|
|
/* 802.11A walks to the next literal adjacent rate in
|
|
/* 802.11A walks to the next literal adjacent rate in
|
|
* the rate table */
|
|
* the rate table */
|