mwifiex: Add support for NL80211_ATTR_MAX_AP_ASSOC_STA
[linux-2.6-block.git] / drivers / net / wireless / marvell / mwifiex / cmdevt.c
index 589cc5eb12a2eaf194d7ec93731095de65c9b9c4..d068b9075c3264c866b8710e0609110a525791d6 100644 (file)
@@ -1495,6 +1495,7 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
        struct mwifiex_adapter *adapter = priv->adapter;
        struct mwifiex_ie_types_header *tlv;
        struct hw_spec_api_rev *api_rev;
+       struct hw_spec_max_conn *max_conn;
        u16 resp_size, api_id;
        int i, left_len, parsed_len = 0;
 
@@ -1604,6 +1605,17 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
                                        break;
                                }
                                break;
+                       case TLV_TYPE_MAX_CONN:
+                               max_conn = (struct hw_spec_max_conn *)tlv;
+                               adapter->max_p2p_conn = max_conn->max_p2p_conn;
+                               adapter->max_sta_conn = max_conn->max_sta_conn;
+                               mwifiex_dbg(adapter, INFO,
+                                           "max p2p connections: %u\n",
+                                           adapter->max_p2p_conn);
+                               mwifiex_dbg(adapter, INFO,
+                                           "max sta connections: %u\n",
+                                           adapter->max_sta_conn);
+                               break;
                        default:
                                mwifiex_dbg(adapter, FATAL,
                                            "Unknown GET_HW_SPEC TLV type: %#x\n",