hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/drivers/net/wireless/rockchip_wlan/uwe5621ds/unisocwifi/vendor.c
....@@ -26,7 +26,7 @@
2626 #endif /* RTT_SUPPORT */
2727
2828 #define VENDOR_SCAN_RESULT_EXPIRE (7 * HZ)
29
-#define WIFI_SUBCMD_SET_COUNTRY_CODE 0x0006
29
+#define WIFI_SUBCMD_SET_COUNTRY_CODE 0x100E
3030
3131 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
3232 static const u8 *wpa_scan_get_ie(u8 *res, u8 ie_len, u8 ie)
....@@ -874,7 +874,7 @@
874874 static int sprdwl_vendor_set_country(struct wiphy *wiphy,
875875 struct wireless_dev *wdev, const void *data, int len)
876876 {
877
-#define ANDR_WIFI_ATTRIBUTE_COUNTRY 8
877
+#define ANDR_WIFI_ATTRIBUTE_COUNTRY 4
878878 int err = 0, rem, type;
879879 char country_code[2] = {0};
880880 const struct nlattr *iter;