diff mbox

[1/2] iw: make is_alpha2() available to other objects

Message ID 1282350556-16523-2-git-send-email-lrodriguez@atheros.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Luis Rodriguez Aug. 21, 2010, 12:29 a.m. UTC
None
diff mbox

Patch

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;