nl80211: Update the assoc_freq during connect
authorSunil Dutt <c_duttus@qti.qualcomm.com>
Fri, 23 Aug 2013 12:41:05 +0000 (15:41 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 23 Aug 2013 12:41:05 +0000 (15:41 +0300)
commit30158a0d80a1492b589a0d8d2b58d407ae37c4fa
treeb3e3e3cfd85a97a14d3083987babececd6fe5ad9
parent83e7bb0e5dcb19fe76ceed73bfe0a6c8ce88bb72
nl80211: Update the assoc_freq during connect

drv->assoc_freq was not updated during the connect command (neither
during the command's invocation nor after getting the event) unlike with
auth/assoc case where assoc_freq is updated. This resulted in
nl80211_get_link_noise() (and any other function for that matter) using
the improper drv->assoc_freq value with drivers that use the connect
API. Fix this by updating drv->assoc_freq on connect command and when
fetching the frequency from the driver.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c