iwl3945: iwl3945_mac_get_tsf() should not return zero
authorFabrice Bellet <fabrice@bellet.info>
Fri, 24 Oct 2008 06:48:57 +0000 (23:48 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:02:28 +0000 (19:02 -0400)
commit9fe1c5052019da3d2770abd7b727cbc1083f7937
treee43cb36f814fd7a614fb93e287c4bd274a3b08a1
parenta96a27f97f2bbfc1fca54bc3c0b0d41484152740
iwl3945: iwl3945_mac_get_tsf() should not return zero

The problem fixed here is that iwl3945_mac_get_tsf() returns 0, as the
function is not implemented, and this is considered as a valid value by
the mac layer in mlme.c:1605. The consequence is that the STA in ad-hoc
mode is inserted/removed quite frequently due to IBSS merging.

This patch fixes :
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1781
and https://bugzilla.redhat.com/show_bug.cgi?id=459401

Signed-off-by: Fabrice Bellet <fabrice@bellet.info>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c