OSDN Git Service

ath9k: Prevent divide-by-zero upon bad beacon_interval.
authorBen Greear <greearb@candelatech.com>
Wed, 30 Apr 2014 19:02:05 +0000 (12:02 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 May 2014 18:51:01 +0000 (14:51 -0400)
commit76c939832aa95f6e0e84f173b36906eea2235cee
treed237717adec6e2600f1ab0715d95203ea84b4bc3
parent68b422db3d93878c71200c27e2bffd1c57f72974
ath9k: Prevent divide-by-zero upon bad beacon_interval.

A similar patch fixed crashes seen on an ath9k system
when testing against a broken ath10k AP.  This patch
is slightly less protective, but probably will do the
job and is less redundant.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/recv.c