Remove unused find_first_bit()

This was used only for the VHT capability checks for determining bit
offset for right shift. That was replaced with a constant defines since
there is no need to calculate this at runtime.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-14 19:01:25 +02:00
parent 9ae52e7034
commit 7781da6b2b
2 changed files with 0 additions and 16 deletions

View file

@ -607,21 +607,6 @@ int is_hex(const u8 *data, size_t len)
}
int find_first_bit(u32 value)
{
int pos = 0;
while (value) {
if (value & 0x1)
return pos;
value >>= 1;
pos++;
}
return -1;
}
size_t merge_byte_arrays(u8 *res, size_t res_len,
const u8 *src1, size_t src1_len,
const u8 *src2, size_t src2_len)

View file

@ -497,7 +497,6 @@ const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len);
char * wpa_config_parse_string(const char *value, size_t *len);
int is_hex(const u8 *data, size_t len);
int find_first_bit(u32 value);
size_t merge_byte_arrays(u8 *res, size_t res_len,
const u8 *src1, size_t src1_len,
const u8 *src2, size_t src2_len);