|
@@ -1117,10 +1117,9 @@ mwifiex_cmd_802_11_ad_hoc_join(struct mwifiex_private *priv,
|
|
|
adhoc_join->bss_descriptor.bssid,
|
|
|
adhoc_join->bss_descriptor.ssid);
|
|
|
|
|
|
- for (i = 0; bss_desc->supported_rates[i] &&
|
|
|
- i < MWIFIEX_SUPPORTED_RATES;
|
|
|
- i++)
|
|
|
- ;
|
|
|
+ for (i = 0; i < MWIFIEX_SUPPORTED_RATES &&
|
|
|
+ bss_desc->supported_rates[i]; i++)
|
|
|
+ ;
|
|
|
rates_size = i;
|
|
|
|
|
|
/* Copy Data Rates from the Rates recorded in scan response */
|