• Jussi Kivilinna's avatar
    zd1211rw: lower hw command timeouts · 8f2d8f86
    Jussi Kivilinna authored
    Device command timeouts are set up very high (1 sec) and this causes
    AP beacon to lock up for long for example. Checking timeouts on device
    it's easy to see that 1 sec timeout is not needed, when device fails
    to response longer timeout doesn't help:
    
    [  473.074419] zd1211rw 1-1:1.0: print_times() Read times:
    [  473.175163] zd1211rw 1-1:1.0: print_time()     0 - 10 msec: 1506
    [  473.176429] zd1211rw 1-1:1.0: print_time()    11 - 50 msec: 0
    [  473.177955] zd1211rw 1-1:1.0: print_time()   51 - 100 msec: 0
    [  473.180703] zd1211rw 1-1:1.0: print_time()  101 - 250 msec: 0
    [  473.182101] zd1211rw 1-1:1.0: print_time()  251 - 500 msec: 0
    [  473.183221] zd1211rw 1-1:1.0: print_time() 500 - 1000 msec: 20
    [  473.184381] zd1211rw 1-1:1.0: print_time() 1000 - ... msec: 18
    
    Also vendor driver doesn't use this long timeout. Therefore change
    timeout to 50msec.
    Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    8f2d8f86
zd_usb.c 39 KB