Skip to content

Commit

Permalink
staging: rtl8192u: make in ieee80211/ieee80211_tx.c some local functi…
Browse files Browse the repository at this point in the history
…ons static

Make some local functions (ieee80211_qurey_ShortPreambleMode and
ieee80211_query_HTCapShortGI) static and fix coding style in these
function declarations when It is necessary.

Fix the following sparse warnings in ieee80211/ieee80211_tx.c

drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:381:6: warning: symbol 'ieee80211_qurey_ShortPreambleMode' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:395:1: warning: symbol 'ieee80211_query_HTCapShortGI' was not declared. Should it be static?

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
  • Loading branch information
Ana Rey authored and Peter P Waskiewicz Jr committed Mar 17, 2014
1 parent 627877b commit a5ac48a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee,
return;
}

void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee, cb_desc *tcb_desc)
static void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee,
cb_desc *tcb_desc)
{
tcb_desc->bUseShortPreamble = false;
if (tcb_desc->data_rate == 2)
Expand All @@ -391,7 +392,7 @@ void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee, cb_desc *t
}
return;
}
void
static void
ieee80211_query_HTCapShortGI(struct ieee80211_device *ieee, cb_desc *tcb_desc)
{
PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
Expand Down

0 comments on commit a5ac48a

Please sign in to comment.