• Emmanuel Grumbach's avatar
    mac80211: Fix rate scale initialization in IBSS · 8e1535d5
    Emmanuel Grumbach authored
    This patch address some IBSS rate issues introduced or not covered
    by "mac80211: eliminate IBSS warning in rate_lowest_index()" and
    "cfg80211 API for channels/bitrates, mac80211 and driver conversion".
    
    This patch:
    1. Moves addition of IBSS station from
    prepare_for_handlers to ieee80211_rx_bss_info when triggered from beacon
    eliminating bogus supported rates.
    2. Initialize properly supported rates also in IBSS merging
    3. Ensure that mandatory rates are always added into supported
    rates. This is needed in case when station addition is triggered from
    non beacon/probe packet. Some management frames need to be sent
    4. Remove initialization of supported rates from self rates. This path
    was dead code after 6bc37c06bc4 and in general incorrect.
    Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
    Cc: Vladimir Koutny <vlado@work.ksp.sk>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    8e1535d5
rx.c 58.8 KB