Thread (19 messages) 19 messages, 6 authors, 2015-09-17

Re: [PATCH 3/3] ath10k: implement mesh support

From: Jason Andryuk <hidden>
Date: 2015-08-29 17:11:05

On Thu, Aug 27, 2015 at 6:57 AM, Bob Copeland [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -1117,6 +1120,15 @@ static int ath10k_core_init_firmware_features(struct ath10k *ar)
        ar->htt.max_num_amsdu = ATH10K_HTT_MAX_NUM_AMSDU_DEFAULT;
        ar->htt.max_num_ampdu = ATH10K_HTT_MAX_NUM_AMPDU_DEFAULT;

+       if (rawmode) {
+               if (!test_bit(ATH10K_FW_FEATURE_RAW_MODE_SUPPORT,
+                             ar->fw_features)) {
+                       ath10k_err(ar, "rawmode = 1 requires support from firmware");
+                       return -EINVAL;
+               }
+               set_bit(ATH10K_FLAG_RAW_MODE, &ar->dev_flags);
+       }
+
Is there a reason to hide rawmode behind a modparam, or should the
modparam just be removed?  Just let the driver set
ATH10K_FLAG_RAW_MODE when ATH10K_FW_FEATURE_RAW_MODE_SUPPORT is
detected?
quoted hunk ↗ jump to hunk
@@ -6708,7 +6729,8 @@ static const struct ieee80211_iface_limit ath10k_tlv_qcs_if_limit[] = {
        {
                .max = 1,
                .types = BIT(NL80211_IFTYPE_AP) |
-                        BIT(NL80211_IFTYPE_P2P_GO),
+                        BIT(NL80211_IFTYPE_P2P_GO) |
+                        BIT(NL80211_IFTYPE_MESH_POINT),
        },
        {
                .max = 1,
Does struct ieee80211_iface_limit need to be conditional on firmware
support as well or does interface_modes (below) gate use of
MESH_POINT?
quoted hunk ↗ jump to hunk
@@ -6998,7 +7020,8 @@ int ath10k_mac_register(struct ath10k *ar)

        ar->hw->wiphy->interface_modes =
                BIT(NL80211_IFTYPE_STATION) |
-               BIT(NL80211_IFTYPE_AP);
+               BIT(NL80211_IFTYPE_AP) |
+               BIT(NL80211_IFTYPE_MESH_POINT);
Set BIT(NL80211_IFTYPE_MESH_POINT) conditionally if ATH10K_FLAG_RAW_MODE is set?

Regards,
Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help