Re: [PATCH] nl80211: use loop index as type for net detect frequency results

2015-02-24 Thread Johannes Berg
On Mon, 2015-02-09 at 21:29 +0200, Luca Coelho wrote: > From: Samuel Tan > > We currently add nested members of the NL80211_ATTR_SCAN_FREQUENCIES > as NLA_U32 attributes of type NL80211_ATTR_WIPHY_FREQ in > cfg80211_net_detect_results. However, since there can be an arbitrary number > of > frequ

[PATCH] nl80211: use loop index as type for net detect frequency results

2015-02-09 Thread Luca Coelho
From: Samuel Tan We currently add nested members of the NL80211_ATTR_SCAN_FREQUENCIES as NLA_U32 attributes of type NL80211_ATTR_WIPHY_FREQ in cfg80211_net_detect_results. However, since there can be an arbitrary number of frequency results, we should use the loop index of the loop used to add th