On Tue, 2012-06-19 at 10:33 -0700, Thomas Pedersen wrote: > Support configuring an RSSI threshold in dBm (s32) when requesting > scheduled scan, below which a BSS won't be reported by the cfg80211 > driver. > @@ -4241,7 +4242,7 @@ static int nl80211_start_sched_scan(struct sk_buff *skb, > nla_for_each_nested(attr, > info->attrs[NL80211_ATTR_SCHED_SCAN_MATCH], > tmp) { > - struct nlattr *ssid; > + struct nlattr *ssid, *rssi; > > nla_parse(tb, NL80211_SCHED_SCAN_MATCH_ATTR_MAX, > nla_data(attr), nla_len(attr), > @@ -4257,6 +4258,9 @@ static int nl80211_start_sched_scan(struct sk_buff *skb, > request->match_sets[i].ssid.ssid_len = > nla_len(ssid); > } > + rssi = tb[NL80211_SCHED_SCAN_MATCH_ATTR_RSSI]; > + if (rssi) > + request->rssi_thold = nla_get_u32(rssi); I was going to apply this, but then I realized ... if userspace doesn't set the value then the default is 0 which is a bit useless, better set to a very small negative value or something, right? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html