• Zhao, Gang's avatar
    zd1201: replace function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} · 3d54b905
    Zhao, Gang authored
    Replace ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} with more
    generic ieee80211_{channel_to_frequency, frequency_to_channel}.
    
    Function ieee80211_frequency_to_channel() will return 0 if frequency
    is not correctly provided, so no need to set channel to 0 explicitly.
    
    Include <net/cfg80211.h> for the defination of IEEE80211_BAND_2GHZ.
    Because <net/cfg80211.h> includes <linux/ieee80211.h>, so we can
    replace <linux/ieee80211.h> with <net/cfg80211.h>.
    
    This change is a preparation for the removal of function
    ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan}.
    Signed-off-by: default avatarZhao, Gang <gamerh2o@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    3d54b905
zd1201.c 45.7 KB