On 01/20/2017 06:29 AM, Wojciech Dubowik wrote:
I have been debugging customer reported timeout and loss of communication and I have relaized that I don't have such a lossy environment available in the lab. To speed up debugging I have written frame corruption simulator which will allow me to totally loose specific types of packets. I have been mostly using it with the mask 0x5000 which drops some EAPOL and deauthentication frames. This way I was able to test better timeouts and fail paths. At the moment only management, null function and EAPOL frames are supported. One can add more if necessary.
Would it be worth having a unique percentage configurable for each of the selected packet types? How about moving this up into mac80211 so other drivers could be supported as well? Couldn't you just drop the frames instead of corrupting their checksum? That would work with things like ath10k as well. I would like to have something like this, but with the added ability to corrupt specific things like information-elements in management frames to better test the receiver's packet parsing and error checking logic. For this feature, checksum would not be corrupted. Thanks, Ben
Wojciech Dubowik (1): ath9k: Add frame corruption simulator drivers/net/wireless/ath/ath9k/Kconfig | 15 +++++ drivers/net/wireless/ath/ath9k/ath9k.h | 7 +++ drivers/net/wireless/ath/ath9k/debug.c | 49 +++++++++++++++ drivers/net/wireless/ath/ath9k/xmit.c | 106 +++++++++++++++++++++++++++++++++ 4 files changed, 177 insertions(+)
-- Ben Greear <greearb@xxxxxxxxxxxxxxx> Candela Technologies Inc http://www.candelatech.com