]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: Keep track of the channel when changed
authorAlan Ott <alan@signal11.us>
Fri, 5 Apr 2013 13:03:10 +0000 (13:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 16:09:18 +0000 (12:09 -0400)
commitec1cd7a38aa908f469336e89ff508d8e90ef5b2b
treec0e7c127eceffbcab6640a41766b6817157798ef
parent3af6255f92b2147ce4da75a2f620223ef0d9aac8
mac802154: Keep track of the channel when changed

Two sections checked whether the current channel != the new channel
without ever setting the current channel variables.

1. net/mac802154/tx.c: Prevent set_channel() from getting called every
time a packet is sent.

2. net/mac802154/mib.c: Lock (pib_lock) accesses to current_channel and
current_page and make sure they are updated when the channel has been
changed.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac802154/mib.c
net/mac802154/tx.c