• Amitkumar Karwar's avatar
    mwifiex: corrections in timestamp related code · b5abcf02
    Amitkumar Karwar authored
    
    
    We get two timing related fields for each bss from firmware in scan
    results.
    1) timestamp - Actual timestamp information in probe response/beacon
    2) network_tsf - firmware's TSF value at the time the beacon or probe
    response was received.
    Both are needed while associating by firmware.
    
    The patch takes care of following things.
    1) We should pass "timestamp" to cfg80211_inform_bss(), but currently
    "network_tsf" is being provided. This error is corrected here.
    2) Rename "network_tsf" to "fw_tsf"
    3) Make use of u64 variable instead of an array of u8/u32 to save
    parsed "timestamp" information.
    4) Use timestamp provided to stack in scan results using
    cfg80211_inform_bss() while associating. (bss->tsf)
    5) Allocate space to save fw_tsf in "priv" of cfg80211_bss
    and retrieve it while associating.
    Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
    Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    b5abcf02
sta_ioctl.c 40.9 KB