.. | .. |
---|
427 | 427 | if (head->plcp[6] & 0x80) |
---|
428 | 428 | status->enc_flags |= RX_ENC_FLAG_SHORT_GI; |
---|
429 | 429 | |
---|
430 | | - status->rate_idx = clamp(0, 75, head->plcp[3] & 0x7f); |
---|
| 430 | + status->rate_idx = clamp(head->plcp[3] & 0x7f, 0, 75); |
---|
431 | 431 | status->encoding = RX_ENC_HT; |
---|
432 | 432 | break; |
---|
433 | 433 | |
---|
.. | .. |
---|
766 | 766 | |
---|
767 | 767 | goto drop; |
---|
768 | 768 | } |
---|
| 769 | + fallthrough; |
---|
769 | 770 | |
---|
770 | 771 | case AR9170_RX_STATUS_MPDU_MIDDLE: |
---|
771 | 772 | /* These are just data + mac status */ |
---|
.. | .. |
---|
794 | 795 | break; |
---|
795 | 796 | |
---|
796 | 797 | default: |
---|
797 | | - BUG_ON(1); |
---|
| 798 | + BUG(); |
---|
798 | 799 | break; |
---|
799 | 800 | } |
---|
800 | 801 | |
---|