bcmdhd: Add support for channel 165
bibhayr [Fri, 21 Jun 2013 07:40:36 +0000 (12:40 +0530)]
channel 165 is not the side band of 40MHz 5G channel

Bug 1298751

Change-Id: I9f29d11d30b1394ab097c82f97b177acd98149a2
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/240198
(cherry picked from commit 95e0bfd5949e8bcfb2513a06bd0467d94fe84a92)
Reviewed-on: http://git-master/r/243682
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/net/wireless/bcmdhd/bcmwifi_channels.c

index 6b5b0a3..b911e6a 100644 (file)
@@ -911,6 +911,9 @@ wf_chspec_valid(chanspec_t chanspec)
                                }
 
                                if (i == num_ch) {
+                                       /* check for channel 165 which is not the side band of 40MHz 5G channel */
+                                       if (chspec_ch == 165)
+                                               i = 0;
                                        /* check for legacy JP channels on failure */
                                        if (chspec_ch == 34 || chspec_ch == 38 ||
                                            chspec_ch == 42 || chspec_ch == 46)