wmi.c (9233299394de1c571e52ab2dbe1995c1fbdc8fda) | wmi.c (43a06b346d1350009c8f7eaa1a2a137395874ca0) |
---|---|
1/* 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 922 unchanged lines hidden (view full) --- 931 reg_code = le32_to_cpu(ev->reg_code); 932 933 if ((reg_code >> ATH6KL_COUNTRY_RD_SHIFT) & COUNTRY_ERD_FLAG) 934 country = ath6kl_regd_find_country((u16) reg_code); 935 else if (!(((u16) reg_code & WORLD_SKU_MASK) == WORLD_SKU_PREFIX)) { 936 937 regpair = ath6kl_get_regpair((u16) reg_code); 938 country = ath6kl_regd_find_country_by_rd((u16) reg_code); | 1/* 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 922 unchanged lines hidden (view full) --- 931 reg_code = le32_to_cpu(ev->reg_code); 932 933 if ((reg_code >> ATH6KL_COUNTRY_RD_SHIFT) & COUNTRY_ERD_FLAG) 934 country = ath6kl_regd_find_country((u16) reg_code); 935 else if (!(((u16) reg_code & WORLD_SKU_MASK) == WORLD_SKU_PREFIX)) { 936 937 regpair = ath6kl_get_regpair((u16) reg_code); 938 country = ath6kl_regd_find_country_by_rd((u16) reg_code); |
939 ath6kl_dbg(ATH6KL_DBG_WMI, "Regpair used: 0x%0x\n", 940 regpair->regDmnEnum); | 939 if (regpair) 940 ath6kl_dbg(ATH6KL_DBG_WMI, "Regpair used: 0x%0x\n", 941 regpair->regDmnEnum); 942 else 943 ath6kl_warn("Regpair not found reg_code 0x%0x\n", 944 reg_code); |
941 } 942 943 if (country && wmi->parent_dev->wiphy_registered) { 944 alpha2[0] = country->isoName[0]; 945 alpha2[1] = country->isoName[1]; 946 947 regulatory_hint(wmi->parent_dev->wiphy, alpha2); 948 --- 3162 unchanged lines hidden --- | 945 } 946 947 if (country && wmi->parent_dev->wiphy_registered) { 948 alpha2[0] = country->isoName[0]; 949 alpha2[1] = country->isoName[1]; 950 951 regulatory_hint(wmi->parent_dev->wiphy, alpha2); 952 --- 3162 unchanged lines hidden --- |