|
@@ -2822,6 +2822,11 @@ __wlan_hdd_cfg80211_set_ext_roam_params(struct wiphy *wiphy,
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
|
|
|
+ if (pHddCtx->driver_status == DRIVER_MODULES_CLOSED) {
|
|
|
+ hdd_err("Driver Modules are closed");
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
+
|
|
|
if (nla_parse(tb, QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX,
|
|
|
data, data_len,
|
|
|
NULL)) {
|
|
@@ -9648,7 +9653,9 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = {
|
|
|
{
|
|
|
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
|
|
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI,
|
|
|
- .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
|
|
+ .flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_NETDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_RUNNING,
|
|
|
.doit = wlan_hdd_cfg80211_set_scanning_mac_oui
|
|
|
},
|
|
|
{
|
|
@@ -9661,14 +9668,16 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = {
|
|
|
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
|
|
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG,
|
|
|
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
|
|
- WIPHY_VENDOR_CMD_NEED_NETDEV,
|
|
|
+ WIPHY_VENDOR_CMD_NEED_NETDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_RUNNING,
|
|
|
.doit = wlan_hdd_cfg80211_disable_dfs_chan_scan
|
|
|
},
|
|
|
{
|
|
|
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
|
|
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_WISA,
|
|
|
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
|
|
- WIPHY_VENDOR_CMD_NEED_NETDEV,
|
|
|
+ WIPHY_VENDOR_CMD_NEED_NETDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_RUNNING,
|
|
|
.doit = wlan_hdd_cfg80211_handle_wisa_cmd
|
|
|
},
|
|
|
{
|
|
@@ -9744,21 +9753,24 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = {
|
|
|
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
|
|
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_ROAM,
|
|
|
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
|
|
- WIPHY_VENDOR_CMD_NEED_NETDEV,
|
|
|
+ WIPHY_VENDOR_CMD_NEED_NETDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_RUNNING,
|
|
|
.doit = wlan_hdd_cfg80211_set_ext_roam_params
|
|
|
},
|
|
|
{
|
|
|
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
|
|
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START,
|
|
|
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
|
|
- WIPHY_VENDOR_CMD_NEED_NETDEV,
|
|
|
+ WIPHY_VENDOR_CMD_NEED_NETDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_RUNNING,
|
|
|
.doit = wlan_hdd_cfg80211_wifi_logger_start
|
|
|
},
|
|
|
{
|
|
|
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
|
|
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA,
|
|
|
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
|
|
- WIPHY_VENDOR_CMD_NEED_NETDEV,
|
|
|
+ WIPHY_VENDOR_CMD_NEED_NETDEV |
|
|
|
+ WIPHY_VENDOR_CMD_NEED_RUNNING,
|
|
|
.doit = wlan_hdd_cfg80211_wifi_logger_get_ring_data
|
|
|
},
|
|
|
{
|