Skip to content
  • Stanislaw Gruszka's avatar
    iwlegacy: do not use interruptible waits · 65d0f19e
    Stanislaw Gruszka authored
    iwlegacy version of fix:
    
    commit effd4d9a
    
    
    Author: Johannes Berg <johannes.berg@intel.com>
    Date:   Thu Sep 15 11:46:52 2011 -0700
    
        iwlagn: do not use interruptible waits
    
        Since the dawn of its time, iwlwifi has used
        interruptible waits to wait for synchronous
        commands and firmware loading.
    
        This leads to "interesting" bugs, because it
        can't actually handle the interruptions; for
        example when a command sending is interrupted
        it will assume the command completed fully,
        and then leave it pending, which leads to all
        kinds of trouble when the command finishes
        later.
    
        Since there's no easy way to gracefully deal
        with interruptions, fix the driver to not use
        interruptible waits.
    
        This at least fixes the error
        iwlagn 0000:02:00.0: Error: Response NULL in  'REPLY_SCAN_ABORT_CMD'
    
        I have seen in P2P testing, but it is likely
        that there are other errors caused by this.
    
    Cc: stable@kernel.org # 2.6.39+
    Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    65d0f19e