• Kiran Divekar's avatar
    Libertas: fix WARN_ON issues in cfg80211 support · e4fe4eaf
    Kiran Divekar authored
    In following scenarios WARN_ON() in cfg80211 code was triggered.
    a) Driver unload or card removal.
    b) Disconnect from infra network
    c) Adhoc start/join
    d) Adhoc stop
    Added following fixes to avoid WARN_ON() in cfg80211 code.
    a) Ensured that cfg80211_disconnected() function defined in cfg80211
    code will be called only in infra mode.
    b) Solved timing issue by moving cfg80211_disconnected() call inside
    lbs_cfg_disconnect().
    c) Updated "wdev->ssid" in driver code after Adhoc join/start
    d) Removed unnecessory cfg80211_disconnected() call in lbs_remove_card.
    Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
    Signed-off-by: default avatarKiran Divekar <dkiran@marvell.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    e4fe4eaf
main.c 27 KB