diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-10-25 10:04:13 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-11 05:58:48 -0500 |
commit | 240d279940ef496e9456db2287b7989f6521e2e2 (patch) | |
tree | 9e5959c4db18a3849576f43d339d41ebac725e92 /drivers/net/wireless/ath/ath6kl/debug.c | |
parent | 334234b51453fe5def250bd60ea63b1f04a8e0d2 (diff) |
ath6kl: Take vif information from wmi event
Interface index is passed in wmi command header from target.
Use this index to get the appropriate vif.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/debug.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c index 870e9b1b1f43..54faa6b39e9a 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.c +++ b/drivers/net/wireless/ath/ath6kl/debug.c | |||
@@ -1249,6 +1249,8 @@ static ssize_t ath6kl_create_qos_write(struct file *file, | |||
1249 | { | 1249 | { |
1250 | 1250 | ||
1251 | struct ath6kl *ar = file->private_data; | 1251 | struct ath6kl *ar = file->private_data; |
1252 | /* TODO: Findout vif */ | ||
1253 | struct ath6kl_vif *vif = ar->vif; | ||
1252 | char buf[100]; | 1254 | char buf[100]; |
1253 | ssize_t len; | 1255 | ssize_t len; |
1254 | char *sptr, *token; | 1256 | char *sptr, *token; |
@@ -1403,7 +1405,7 @@ static ssize_t ath6kl_create_qos_write(struct file *file, | |||
1403 | return -EINVAL; | 1405 | return -EINVAL; |
1404 | pstream.medium_time = cpu_to_le32(val32); | 1406 | pstream.medium_time = cpu_to_le32(val32); |
1405 | 1407 | ||
1406 | ath6kl_wmi_create_pstream_cmd(ar->wmi, &pstream); | 1408 | ath6kl_wmi_create_pstream_cmd(ar->wmi, vif->fw_vif_idx, &pstream); |
1407 | 1409 | ||
1408 | return count; | 1410 | return count; |
1409 | } | 1411 | } |
@@ -1421,6 +1423,8 @@ static ssize_t ath6kl_delete_qos_write(struct file *file, | |||
1421 | { | 1423 | { |
1422 | 1424 | ||
1423 | struct ath6kl *ar = file->private_data; | 1425 | struct ath6kl *ar = file->private_data; |
1426 | /* TODO: Findout vif */ | ||
1427 | struct ath6kl_vif *vif = ar->vif; | ||
1424 | char buf[100]; | 1428 | char buf[100]; |
1425 | ssize_t len; | 1429 | ssize_t len; |
1426 | char *sptr, *token; | 1430 | char *sptr, *token; |
@@ -1445,7 +1449,8 @@ static ssize_t ath6kl_delete_qos_write(struct file *file, | |||
1445 | if (kstrtou8(token, 0, &tsid)) | 1449 | if (kstrtou8(token, 0, &tsid)) |
1446 | return -EINVAL; | 1450 | return -EINVAL; |
1447 | 1451 | ||
1448 | ath6kl_wmi_delete_pstream_cmd(ar->wmi, traffic_class, tsid); | 1452 | ath6kl_wmi_delete_pstream_cmd(ar->wmi, vif->fw_vif_idx, |
1453 | traffic_class, tsid); | ||
1449 | 1454 | ||
1450 | return count; | 1455 | return count; |
1451 | } | 1456 | } |