[PATCH v3] cfg80211: Check radar_detect and num_different_channels with beacon interface combinations.

2016-10-13 Thread Purushottam Kushwaha
to "cfg80211_validate_beacon_combination" as the validation considers other parameters. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 3 -- net/wireless/core.h| 7 ++-- net/wireless/mesh.c| 7 net/wireless/nl8021

[PATCH v2] cfg80211: Check radar_detect and num_different_channels with beacon interface combinations.

2016-10-12 Thread Purushottam Kushwaha
This commit enhances the current beacon interval validation to also consider the "radar_detect" and "num_different_channels". Rename "cfg80211_validate_beacon_int" to "cfg80211_validate_beacon_combination" as the validation considers other parameters. Si

[PATCH v2] cfg80211: Create structure for combination check/iter function parameters

2016-10-12 Thread Purushottam Kushwaha
Move growing parameter list to a structure for check/iter combination functions in cfg80211 and mac80211. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 26 ++- include/net/cfg8

[PATCH v10] cfg80211: Provision to allow the support for different beacon intervals

2016-10-12 Thread Purushottam Kushwaha
ust be greator or equal to this value. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 4 +++ include/net/cfg80211.h | 14 +++- include/uapi/linux/nl80211.h | 8 +

[PATCH] cfg80211: Check radar_detect and num_different_channels with beacon interface combinations.

2016-10-10 Thread Purushottam Kushwaha
This commit enhances the current beacon interval validation to also consider the "radar_detect" and "num_different_channels". Rename "cfg80211_validate_beacon_int" to "cfg80211_validate_beacon_combination" as the validation considers other parameters. Si

[PATCH] cfg80211: Create structure for combination check/iter function parameters

2016-10-10 Thread Purushottam Kushwaha
Move growing parameter list to a structure for check/iter combination functions in cfg80211 and mac80211. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 25 - include/net/cfg80211.h

[PATCH v9] cfg80211: Provision to allow the support for different beacon intervals

2016-10-10 Thread Purushottam Kushwaha
ust be greator or equal to this value. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 6 ++- include/net/cfg80211.h | 18 - include/uapi/linux/nl80211.h | 8

[PATCH v5] cfg80211: Add support to configure a beacon data rate

2016-09-14 Thread Purushottam Kushwaha
This allows an option to configure a single beacon tx rate (u8) for an AP. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 25 +-- net/wireless/nl80211.c | 509 - 2 files changed, 301 insertions(+

[PATCH v4] cfg80211: Add support to configure a beacon data rate

2016-09-13 Thread Purushottam Kushwaha
This allows an option to configure a single beacon tx rate (u8) for an AP. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 25 +-- net/wireless/nl80211.c | 504 +++-- 2 files changed, 296 insertions(+

[PATCH v3] cfg80211: Add support to configure a beacon data rate

2016-09-02 Thread Purushottam Kushwaha
This allows an option to configure a single beacon tx rate (u8) for an AP. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 25 +-- net/wireless/nl80211.c | 493 +++-- 2 files changed, 285 insertions(+

[PATCH v8] cfg80211: Provision to allow the support for different beacon intervals

2016-08-31 Thread Purushottam Kushwaha
for different interfaces must be same. > 0 - any beacon interval for the interface part of this combination must also be bigger than this value Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 9 +++- include/uapi/linux/nl802

[PATCH v7] cfg80211: Provision to allow the support for different beacon intervals

2016-08-12 Thread Purushottam Kushwaha
for different interfaces must be same. > 0 - different beacon intervals must have a GCD that's at least as big as this value. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 9 - include/uapi/linux/nl80211.h | 8 ++-- net

[PATCH v6] cfg80211: Provision to allow the support for different beacon intervals

2016-08-12 Thread Purushottam Kushwaha
beaconing interfaces (along with the current one) must match with the interface combinations in a group that advertise the support for different beacon interval. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 4 include/uapi/linux/nl8

[PATCH v5] cfg80211: Provision to allow the support for different beacon intervals

2016-08-11 Thread Purushottam Kushwaha
beaconing interfaces (along with the current one) must match with the interface combinations in a group that advertise the support for different beacon interval. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 4 include/uapi/linux/nl8

[PATCH] cfg80211: validate beacon interval for MESH/IBSS

2016-08-11 Thread Purushottam Kushwaha
Beacon interval validation was missing for MESH / IBSS join. This commit addresses the same. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- net/wireless/nl80211.c | 8 1 file changed, 8 insertions(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl8

[PATCH v4] cfg80211: Provision to allow the support for different beacon intervals

2016-08-04 Thread Purushottam Kushwaha
This commit provides the option for the host drivers to advertise the support for different beacon intervals among the respective interface combinations, through supp_diff_beacon_int (bool). Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h

[PATCH v3] cfg80211: Allow different beacon interval if driver supports

2016-07-22 Thread Purushottam Kushwaha
Driver may allow support for different beacon interval on virtual interfaces. Allow if such support is advertised by driver. This adds new ext_feature as NL80211_EXT_FEATURE_DIFF_BEACON_INTERVAL. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/uapi/linux/nl80211

[PATCH v2] cfg80211: Allow differnt beacon interval if driver supports

2016-07-18 Thread Purushottam Kushwaha
Driver may allow support for different beacon interval on virtual interfaces. Allow if such support is advertised by driver. This adds new ext_feature as NL80211_EXT_FEATURE_DIFF_BEACON_INTERVAL. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/uapi/linux/nl80211

[PATCH] cfg80211: Allow different beacon interval support on virtual interface.

2016-07-08 Thread Purushottam Kushwaha
Driver may support different beacon interval on virtual interfaces. Allow setting different beacon interval per interface if driver has such support. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 5 + net/wireless/util.c| 3 +++ 2

[PATCH] cfg80211: Add support for user configurable beacon data rate

2016-07-08 Thread Purushottam Kushwaha
This will allow user to configure beacon tx rate from userspace. This adds new nl80211 attribute as NL80211_ATTR_BEACON_RATE. Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- include/net/cfg80211.h | 3 ++- include/uapi/linux/nl80211.h | 5 + net/wireless/nl8

[PATCH] nl80211: Move ACL parsing later to avoid a possible memory leak

2016-07-05 Thread Purushottam Kushwaha
No support for pbss results in a memory leak for the acl_data (if parse_acl_data succeeds). Fix this by moving the ACL parsing later. Fixes: 34d505193bd10 ("cfg80211: basic support for PBSS network type") Signed-off-by: Purushottam Kushwaha <pkush...@qti.qualcomm.com> --- net/wi