diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-02-18 14:39:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 00:11:05 +0100 |
commit | 1c8272bd18cf284de5cb43fb6b0e0457041a17b2 (patch) | |
tree | 80b2860c1058e8279fa67c6145788af9cd86b8a7 /Documentation/hw_random.txt | |
parent | Documentation: broadcom-bcmgenet: fix address and cells properties (diff) | |
download | linux-1c8272bd18cf284de5cb43fb6b0e0457041a17b2.tar.xz linux-1c8272bd18cf284de5cb43fb6b0e0457041a17b2.zip |
ieee802154: fix faulty check in set_phy_params api
phy_set_csma_params has a redundant (and impossible) check for
"retries", found by smatch. The check was supposed to be for
frame_retries, but wasn't moved during development when
phy_set_frame_retries was introduced. Also, maxBE >= 3 as required by
the standard is not enforced.
Remove the redundant check, assure max_be >= 3 and check -1 <=
frame_retries <= 7 in the correct function.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/hw_random.txt')
0 files changed, 0 insertions, 0 deletions