From: Alex Shi Date: Tue, 6 Dec 2016 05:01:29 +0000 (+0800) Subject: Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android X-Git-Tag: firefly_0821_release~176^2~55 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bdcf7d8df4cfa7f99423da161019b964f7ce2520;p=firefly-linux-kernel-4.4.55.git Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android Conflicts: keep low scan freq in android in net/wireless/scan.c --- bdcf7d8df4cfa7f99423da161019b964f7ce2520 diff --cc net/wireless/scan.c index 30f967665e84,8dde12a11725..6e7b86ca2abd --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@@ -56,7 -56,20 +56,20 @@@ * also linked into the probe response struct. */ + /* + * Limit the number of BSS entries stored in mac80211. Each one is + * a bit over 4k at most, so this limits to roughly 4-5M of memory. + * If somebody wants to really attack this though, they'd likely + * use small beacons, and only one type of frame, limiting each of + * the entries to a much smaller size (in order to generate more + * entries in total, so overhead is bigger.) + */ + static int bss_entries_limit = 1000; + module_param(bss_entries_limit, int, 0644); + MODULE_PARM_DESC(bss_entries_limit, + "limit to number of scan BSS entries (per wiphy, default 1000)"); + -#define IEEE80211_SCAN_RESULT_EXPIRE (30 * HZ) +#define IEEE80211_SCAN_RESULT_EXPIRE (7 * HZ) static void bss_free(struct cfg80211_internal_bss *bss) {