rate_flg is of type 'enum nl80211_attrs', however it is assigned with 'enum nl80211_rate_info' values. Change the type of rate_flg accordingly.
Unified · Split
| @@ -4203,7 +4203,7 @@ static bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info, · 4202 unmodified lines | |||
| 4203 | struct nlattr *rate; | 4203 | struct nlattr *rate; |
| 4204 | u32 bitrate; | 4204 | u32 bitrate; |
| 4205 | u16 bitrate_compat; | 4205 | u16 bitrate_compat; |
| 4206 | enum nl80211_attrs rate_flg; | 4206 | enum nl80211_rate_info rate_flg; |
| 4207 | 4207 | ||
| 4208 | rate = nla_nest_start(msg, attr); | 4208 | rate = nla_nest_start(msg, attr); |
| 4209 | if (!rate) | 4209 | if (!rate) |