diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2013-09-16 14:37:53 -0700 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2013-09-16 20:04:44 -0700 |
commit | b4fc3eeed446f7e1943c72b2a3d98f0707e6af5b (patch) | |
tree | 7751dbfb7fa41c3ac8494602e35ff680e09a7064 | |
parent | 7bcf2d687c7ec924169c68e514ee43be5d0e95a9 (diff) | |
download | wpa_supplicant_8-b4fc3eeed446f7e1943c72b2a3d98f0707e6af5b.tar.gz |
Android: P2P: Restrict GO channels on A-bandandroid-4.4_r0.7
Bug: 10641114
Change-Id: I621ef6d5e45392d86211bc3936e85b876b96aec4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Conflicts:
src/p2p/p2p_utils.c
-rw-r--r-- | src/p2p/p2p_utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p2p/p2p_utils.c b/src/p2p/p2p_utils.c index deb7aa9f..a34c8dee 100644 --- a/src/p2p/p2p_utils.c +++ b/src/p2p/p2p_utils.c @@ -247,6 +247,12 @@ int p2p_channels_includes_freq(const struct p2p_channels *channels, int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) { u8 op_reg_class, op_channel; + +#ifdef ANDROID_P2P + if (freq >= 5170 && freq < 5745) + + return 0; +#endif if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) return 0; return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, |