ath6kl: Enable multiple vif support

The maximum number of supported virtual interfaces are 3.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
Vasanthakumar Thiagarajan 2011-11-18 10:05:28 +05:30 committed by Kalle Valo
parent f143379dbf
commit b64de35654
2 changed files with 4 additions and 16 deletions

View File

@ -404,7 +404,7 @@ enum ath6kl_hif_type {
* Driver's maximum limit, note that some firmwares support only one vif * Driver's maximum limit, note that some firmwares support only one vif
* and the runtime (current) limit must be checked from ar->vif_max. * and the runtime (current) limit must be checked from ar->vif_max.
*/ */
#define ATH6KL_VIF_MAX 1 #define ATH6KL_VIF_MAX 3
/* vif flags info */ /* vif flags info */
enum ath6kl_vif_state { enum ath6kl_vif_state {

View File

@ -414,11 +414,7 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx)
status = -EIO; status = -EIO;
} }
/* if (ar->p2p && (ar->vif_max == 1 || idx)) {
* FIXME: Make sure p2p configurations are not applied to
* non-p2p capable interfaces when multivif support is enabled.
*/
if (ar->p2p) {
ret = ath6kl_wmi_info_req_cmd(ar->wmi, idx, ret = ath6kl_wmi_info_req_cmd(ar->wmi, idx,
P2P_FLAG_CAPABILITIES_REQ | P2P_FLAG_CAPABILITIES_REQ |
P2P_FLAG_MACADDR_REQ | P2P_FLAG_MACADDR_REQ |
@ -431,11 +427,7 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx)
} }
} }
/* if (ar->p2p && (ar->vif_max == 1 || idx)) {
* FIXME: Make sure p2p configurations are not applied to
* non-p2p capable interfaces when multivif support is enabled.
*/
if (ar->p2p) {
/* Enable Probe Request reporting for P2P */ /* Enable Probe Request reporting for P2P */
ret = ath6kl_wmi_probe_report_req_cmd(ar->wmi, idx, true); ret = ath6kl_wmi_probe_report_req_cmd(ar->wmi, idx, true);
if (ret) { if (ret) {
@ -481,11 +473,7 @@ int ath6kl_configure_target(struct ath6kl *ar)
fw_submode |= HI_OPTION_FW_SUBMODE_P2PDEV << fw_submode |= HI_OPTION_FW_SUBMODE_P2PDEV <<
(i * HI_OPTION_FW_SUBMODE_BITS); (i * HI_OPTION_FW_SUBMODE_BITS);
/* if (ar->p2p && ar->vif_max == 1)
* FIXME: This needs to be removed once the multivif
* support is enabled.
*/
if (ar->p2p)
fw_submode = HI_OPTION_FW_SUBMODE_P2PDEV; fw_submode = HI_OPTION_FW_SUBMODE_P2PDEV;
param = HTC_PROTOCOL_VERSION; param = HTC_PROTOCOL_VERSION;