if_ath: ath_tgt_send_beacon assert if beacon exist 120/head
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 27 Nov 2016 06:59:05 +0000 (07:59 +0100)
committerOleksij Rempel <linux@rempel-privat.de>
Fri, 16 Dec 2016 11:23:43 +0000 (12:23 +0100)
commit7a22b7ce9909ee5cdf163341f414bf376634d6d1
tree28eb5a1c23231447fd3b6077969c9ae88cbc5cdf
parente9f0b338a161efc530b9a09427f098c1e26529d1
if_ath: ath_tgt_send_beacon assert if beacon exist

With current code we will print error and try to execute something
If bhdr will be accidantly not NULL, then we will continue with some
trash without letting host knwo about it.

In this case it is better to use assert and send to the host at least panic
notification.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/wlan/if_ath.c