Skip to content

Commit

Permalink
cfg80211: Fix signal_type comparison
Browse files Browse the repository at this point in the history
signal_type is enum cfg80211_signal_type.

This fixes the gcc warning:

scan.c: In function `cfg80211_inform_bss':
scan.c:518:6: warning: comparison between `enum cfg80211_signal_type' and `enum nl80211_bss'
scan.c: In function `cfg80211_inform_bss_frame':
scan.c:574:6: warning: comparison between `enum cfg80211_signal_type' and `enum nl80211_bss'

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed May 21, 2010
1 parent 76cc8b1 commit 22fe88d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ cfg80211_inform_bss(struct wiphy *wiphy,

privsz = wiphy->bss_priv_size;

if (WARN_ON(wiphy->signal_type == NL80211_BSS_SIGNAL_UNSPEC &&
if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC &&
(signal < 0 || signal > 100)))
return NULL;

Expand Down Expand Up @@ -571,7 +571,7 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
u.probe_resp.variable);
size_t privsz = wiphy->bss_priv_size;

if (WARN_ON(wiphy->signal_type == NL80211_BSS_SIGNAL_UNSPEC &&
if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC &&
(signal < 0 || signal > 100)))
return NULL;

Expand Down

0 comments on commit 22fe88d

Please sign in to comment.