[PATCH] ath10k: Fix possible out of bound access of ath10k_rates array

2018-10-02 Thread Sriram R
While using 'ath10k_mac_get_rate_hw_value()' to obtain the hw value from the passed bitrate, there is a chance of out of bound array access when wrong bitrate is passed. This is fixed by comparing the bitrates within the correct size of the ath10k_rates array. Fixes commit f279294e9ee2 ("ath10k: a

Re: [PATCH] ath10k: Fix possible out of bound access of ath10k_rates array

2018-10-13 Thread Kalle Valo
Sriram R wrote: > While using 'ath10k_mac_get_rate_hw_value()' to obtain the hw value > from the passed bitrate, there is a chance of out of bound array access > when wrong bitrate is passed. This is fixed by comparing the bitrates > within the correct size of the ath10k_rates array. > > Fixes c