]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: iface: fix hrtimer cancel on ifdown
authorAlexander Aring <alex.aring@gmail.com>
Sat, 13 Jun 2015 20:15:51 +0000 (22:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Jun 2015 23:22:19 +0000 (01:22 +0200)
commit71f9f0e6d9b842df9f8e39c0f9d49827ac4d6804
tree388fdab0b5d3f6b4087aa63241dec900c6e62381
parentb721d9f4a4598df8b04d6038104d509873c8730f
mac802154: iface: fix hrtimer cancel on ifdown

The interframe spacing timer is a per phy definition and is part of a
ieee802154_local structure. If we have possible multiple interfaces
ifdown one interface then the timer should not be cancled. First if the
last interface is down and the receive handling is stopped we should be
sure that the interframe spacing timer isn't run anymore.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c