Lines Matching +full:20 +full:db

238 		REG_RULE(2412-10, 2462+10, 40, 6, 20, 0),
240 REG_RULE(2467-10, 2472+10, 20, 6, 20,
244 REG_RULE(2484-10, 2484+10, 20, 6, 20,
248 REG_RULE(5180-10, 5240+10, 80, 6, 20,
253 REG_RULE(5260-10, 5320+10, 80, 6, 20,
259 REG_RULE(5500-10, 5720+10, 160, 6, 20,
264 REG_RULE(5745-10, 5825+10, 80, 6, 20,
639 #define FWDB_VERSION 20
763 MODULE_FIRMWARE("regulatory.db.p7s");
770 if (request_firmware(&sig, "regulatory.db.p7s", &reg_fdev->dev))
832 static void set_wmm_rule(const struct fwdb_header *db,
842 wmm = (void *)((u8 *)db + wmm_ptr);
867 static int __regdb_query_wmm(const struct fwdb_header *db,
872 struct fwdb_collection *coll = (void *)((u8 *)db + ptr);
878 struct fwdb_rule *rule = (void *)((u8 *)db + rule_ptr);
885 set_wmm_rule(db, country, rule, rrule);
916 static int regdb_query_country(const struct fwdb_header *db,
920 struct fwdb_collection *coll = (void *)((u8 *)db + ptr);
936 struct fwdb_rule *rule = (void *)((u8 *)db + rule_ptr);
965 set_wmm_rule(db, country, rule, rrule);
995 void *db;
998 pr_info("failed to load regulatory.db\n");
1001 pr_info("loaded regulatory.db is malformed or signature is missing/invalid\n");
1011 * Either case, just restore and free new db.
1016 db = kmemdup(fw->data, fw->size, GFP_KERNEL);
1017 if (db) {
1018 regdb = db;
1035 MODULE_FIRMWARE("regulatory.db");
1050 err = request_firmware_nowait(THIS_MODULE, true, "regulatory.db",
1062 void *db;
1067 err = request_firmware(&fw, "regulatory.db", &reg_fdev->dev);
1076 db = kmemdup(fw->data, fw->size, GFP_KERNEL);
1077 if (!db) {
1085 regdb = db;
1216 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20));
1272 * than 2 GHz for the 2.4 and 5 GHz bands, and by more than 20 GHz for the
1287 u32 limit = freq_khz > 45 * KHZ_PER_GHZ ? 20 * KHZ_PER_GHZ : 2 * KHZ_PER_GHZ;
1642 static const u32 bws[] = {0, 1, 2, 4, 5, 8, 10, 16, 20};
1659 u32 min_bw = center_freq < MHZ_TO_KHZ(1000) ? 1 : 20;
1716 MHZ_TO_KHZ(20)))
1721 if (max_bandwidth_khz < MHZ_TO_KHZ(20))
1885 /* reg_rule_to_chan_bw_flags may forbids 10 and forbids 20 MHz
1894 MHZ_TO_KHZ(20)))
1931 * is always 20 MHz for each individual channel (HT40 uses 20 MHz
1950 * chan - 20 MHz and chan + 20 MHz and test
1954 orig_chan_freq - MHZ_TO_KHZ(20));
1956 orig_chan_freq + MHZ_TO_KHZ(20));
1975 MHZ_TO_KHZ(20)))
2270 if (c->center_freq == (channel->center_freq - 20))
2272 if (c->center_freq == (channel->center_freq + 20))
2281 regd, MHZ_TO_KHZ(20));
2288 * Please note that this assumes target bandwidth is 20 MHz,
2541 for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) {
2600 * We currently assume that you always want at least 20 MHz,
2606 MHZ_TO_KHZ(20));