Search Linux Wireless

RE: [PATCH] nl80211: fix scheduled scan RSSI matchset attribute confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>@@ -5669,15 +5708,28 @@ static int nl80211_start_sched_scan(struct sk_buff *skb,
>                                       nla_data(ssid), nla_len(ssid));
>                                request->match_sets[i].ssid.ssid_len =
>                                        nla_len(ssid);
>+                               /* special attribute - old implemenation w/a */
>+                               request->match_sets[i].rssi_thold =
>+                                       default_match_rssi;

How about this case where RSSI is disabled for SSID1 and and SSID 4
and only SSID2 and SSID3 needs RSSI filter.

   SSID1, SSID2, RSSI, SSID3, RSSI, SSID4

Wouldn't this change set RSSI of SSID3 to SSID1 and SSID4 ?
Did i miss to understand anything ?

>+                               rssi = tb[NL80211_SCHED_SCAN_MATCH_ATTR_RSSI];
>+                               if (rssi)
>+                                       request->match_sets[i].rssi_thold =
>+                                               nla_get_s32(rssi);
>                        }
>-                       rssi = tb[NL80211_SCHED_SCAN_MATCH_ATTR_RSSI];
>-                       if (rssi)
>-                               request->rssi_thold = nla_get_u32(rssi);
--
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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux