This will be used by a new GeoClue based regulatory hint command.

Signed-off-by: Luis R. Rodriguez <[email protected]>
---
 iw.h  |    1 +
 reg.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/iw.h b/iw.h
index c21f093..771a190 100644
--- a/iw.h
+++ b/iw.h
@@ -137,6 +137,7 @@ void print_ssid_escaped(const uint8_t len, const uint8_t 
*data);
 int nl_get_multicast_id(struct nl_sock *sock, const char *family, const char 
*group);
 
 char *reg_initiator_to_string(__u8 initiator);
+bool is_alpha2(char *alpha2);
 
 const char *get_reason_str(uint16_t reason);
 const char *get_status_str(uint16_t status);
diff --git a/reg.c b/reg.c
index 7f82e08..bbdc2fc 100644
--- a/reg.c
+++ b/reg.c
@@ -28,7 +28,7 @@ static bool isalpha_upper(char letter)
        return false;
 }
 
-static bool is_alpha2(char *alpha2)
+bool is_alpha2(char *alpha2)
 {
        if (isalpha_upper(alpha2[0]) && isalpha_upper(alpha2[1]))
                return true;
-- 
1.7.0.4

_______________________________________________
GeoClue mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/geoclue

Reply via email to