P2P: Remove unused P2P_SCAN_SPECIFIC

This is not used anymore after the commit
e6ecfc4fd3.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-06-30 20:20:29 +03:00
parent e6ecfc4fd3
commit 3df2f4fe99
3 changed files with 1 additions and 13 deletions

View file

@ -2962,11 +2962,6 @@ static int test_p2p_scan(void *ctx, enum p2p_scan_type type, int freq,
break; break;
case P2P_SCAN_FULL: case P2P_SCAN_FULL:
break; break;
case P2P_SCAN_SPECIFIC:
social_channels[0] = freq;
social_channels[1] = 0;
params.freqs = social_channels;
break;
case P2P_SCAN_SOCIAL_PLUS_ONE: case P2P_SCAN_SOCIAL_PLUS_ONE:
social_channels[3] = freq; social_channels[3] = freq;
params.freqs = social_channels; params.freqs = social_channels;

View file

@ -131,7 +131,6 @@ struct p2p_data;
enum p2p_scan_type { enum p2p_scan_type {
P2P_SCAN_SOCIAL, P2P_SCAN_SOCIAL,
P2P_SCAN_FULL, P2P_SCAN_FULL,
P2P_SCAN_SPECIFIC,
P2P_SCAN_SOCIAL_PLUS_ONE P2P_SCAN_SOCIAL_PLUS_ONE
}; };
@ -376,8 +375,7 @@ struct p2p_config {
* operation to be completed. Type type argument specifies which type * operation to be completed. Type type argument specifies which type
* of scan is to be done. @P2P_SCAN_SOCIAL indicates that only the * of scan is to be done. @P2P_SCAN_SOCIAL indicates that only the
* social channels (1, 6, 11) should be scanned. @P2P_SCAN_FULL * social channels (1, 6, 11) should be scanned. @P2P_SCAN_FULL
* indicates that all channels are to be scanned. @P2P_SCAN_SPECIFIC * indicates that all channels are to be scanned.
* request a scan of a single channel specified by freq.
* @P2P_SCAN_SOCIAL_PLUS_ONE request scan of all the social channels * @P2P_SCAN_SOCIAL_PLUS_ONE request scan of all the social channels
* plus one extra channel specified by freq. * plus one extra channel specified by freq.
* *

View file

@ -151,11 +151,6 @@ static int wpas_p2p_scan(void *ctx, enum p2p_scan_type type, int freq,
break; break;
case P2P_SCAN_FULL: case P2P_SCAN_FULL:
break; break;
case P2P_SCAN_SPECIFIC:
social_channels[0] = freq;
social_channels[1] = 0;
params.freqs = social_channels;
break;
case P2P_SCAN_SOCIAL_PLUS_ONE: case P2P_SCAN_SOCIAL_PLUS_ONE:
social_channels[3] = freq; social_channels[3] = freq;
params.freqs = social_channels; params.freqs = social_channels;