wlcore: invalidate keep-alive template on disconnection
authorEliad Peller <eliad@wizery.com>
Thu, 16 Aug 2012 10:32:32 +0000 (13:32 +0300)
committerLuciano Coelho <luca@coelho.fi>
Thu, 27 Sep 2012 09:13:53 +0000 (12:13 +0300)
commit4137c17c8c88eca51a9e9d53c5eea0ea3d49940e
treefcf10db2616edbac952637ae3c9a932b38cbc10b
parent8c5dab1a8449428685414c0de494b77841571fd3
wlcore: invalidate keep-alive template on disconnection

Previously, invalidation of the keep-alive template was
done when going idle. However, while removing the
idle-handling we didn't move the keep-alive template
invalidation to another place.

This finally resulted in fw error when trying to use
the keep-alive template by another role.

(Note that we still have an error here - each role
should have its unique keep-alive template id, while
currently they all use CMD_TEMPL_KLV_IDX_NULL_DATA (0).
This only works now because we don't support concurrent
connected stations yet)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
drivers/net/wireless/ti/wlcore/main.c