• Zhu Yi's avatar
    iwmc3200wifi: add disconnect work · c7436273
    Zhu Yi authored
    When the driver receives "connection terminated" event from device,
    it could be caused by 2 reasons: the firmware is roaming or the
    connection is lost (AP disappears). For the former, an association
    complete event is supposed to come within 3 seconds. For the latter,
    the driver won't receive any event except the connection terminated.
    So we kick a delayed work (5*HZ) when we receive the connection
    terminated event. It will be canceled if it turns out to be a roaming
    event later. Otherwise we notify SME and userspace the disconnection.
    Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
    Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    c7436273
main.c 17.9 KB