Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux