]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Android: P2P: Restrict GO channels on A-band
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 16 Sep 2013 21:37:53 +0000 (14:37 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 14:36:34 +0000 (16:36 +0200)
Bug: 10641114

Change-Id: I621ef6d5e45392d86211bc3936e85b876b96aec4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
src/p2p/p2p_utils.c

index e0d3756006856da3ef55054d06d79fcfc0474f82..0769edebf1898cf0501e6a2cb8824e3ff9861ed4 100644 (file)
@@ -249,8 +249,7 @@ 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) &&
-           (os_strncasecmp(p2p->cfg->country, "US", 2) == 0))
+       if (freq >= 5170 && freq < 5745)
                return 0;
 #endif
        if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0)