diff --git a/core/hdd/inc/wlan_hdd_nan.h b/core/hdd/inc/wlan_hdd_nan.h index d83b6c822c10..8fd59d67ab51 100644 --- a/core/hdd/inc/wlan_hdd_nan.h +++ b/core/hdd/inc/wlan_hdd_nan.h @@ -74,7 +74,8 @@ int wlan_hdd_cfg80211_nan_ext_request(struct wiphy *wiphy, .flags = WIPHY_VENDOR_CMD_NEED_WDEV | \ WIPHY_VENDOR_CMD_NEED_NETDEV | \ WIPHY_VENDOR_CMD_NEED_RUNNING, \ - .doit = wlan_hdd_cfg80211_nan_request \ + .doit = wlan_hdd_cfg80211_nan_request, \ + vendor_command_policy(VENDOR_CMD_RAW_DATA, 0) \ }, \ { \ .info.vendor_id = QCA_NL80211_VENDOR_ID, \ diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index d552bd51034a..b938ace1129f 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -14416,7 +14416,8 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .info.subcmd = QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY, .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, - .doit = is_driver_dfs_capable + .doit = is_driver_dfs_capable, + vendor_command_policy(VENDOR_CMD_RAW_DATA, 0) }, { .info.vendor_id = QCA_NL80211_VENDOR_ID, @@ -14436,7 +14437,8 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .info.subcmd = QCA_NL80211_VENDOR_SUBCMD_STATS_EXT, .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV | WIPHY_VENDOR_CMD_NEED_RUNNING, - .doit = wlan_hdd_cfg80211_stats_ext_request + .doit = wlan_hdd_cfg80211_stats_ext_request, + vendor_command_policy(VENDOR_CMD_RAW_DATA, 0) }, #endif FEATURE_EXTSCAN_VENDOR_COMMANDS @@ -14717,7 +14719,8 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV | WIPHY_VENDOR_CMD_NEED_RUNNING, - .doit = wlan_hdd_cfg80211_avoid_freq + .doit = wlan_hdd_cfg80211_avoid_freq, + vendor_command_policy(VENDOR_CMD_RAW_DATA, 0) }, #endif { @@ -14777,7 +14780,9 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV | WIPHY_VENDOR_CMD_NEED_RUNNING, - .doit = wlan_hdd_cfg80211_set_fast_roaming + .doit = wlan_hdd_cfg80211_set_fast_roaming, + vendor_command_policy(qca_wlan_vendor_attr, + QCA_WLAN_VENDOR_ATTR_MAX) }, FEATURE_DISA_VENDOR_COMMANDS FEATURE_TDLS_VENDOR_COMMANDS