staging: wlan-ng: replace function ieee80211_dsss_chan_to_freq()
authorZhao, Gang <gamerh2o@gmail.com>
Tue, 18 Feb 2014 15:03:27 +0000 (23:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:16:56 +0000 (11:16 -0800)
commit4e5e9d7c66f045558d5f70f640de0093fcd875e8
tree580b777680c41a93b7c6272536372c8b7b3aba3e
parent75bc5fad154590e8dda5772669cf9b6f44bb873b
staging: wlan-ng: replace function ieee80211_dsss_chan_to_freq()

Replace ieee80211_dsss_chan_to_freq() with more generic
ieee80211_channel_to_frequency(), and add a variable to deal with 80
characters problem.

File cfg80211.c is included by p80211netdev.c, p80211netdev.c includes
<net/cfg80211.h>, both ieee80211_channel_to_frequency() and
IEEE80211_BAND_2GHZ is defined / declared in <net/cfg80211.h>. So this
change is safe.

This change is a preparation for the removal of function
ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan}.

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c