Driver should return when un-supported country code set by regdb.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit:
9b3b65ec3df5ed7b404784ae4ef4cf9f906c0520)
/* in case of no supported country by regdb
lets driver setup platform default Locale
*/
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0))
+ return -EINVAL;
+#else
+ return;
+#endif /* kernel version < 3.9.0 */
}
WL_ERR(("Set country code %c%c from %s\n",
/* in case of no supported country by regdb
lets driver setup platform default Locale
*/
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0))
+ return -EINVAL;
+#else
+ return;
+#endif /* kernel version < 3.9.0 */
}
WL_ERR(("Set country code %c%c from %s\n",