From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from senator.holtmann.net ([87.106.208.187]:42170 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbZEDFKB (ORCPT ); Mon, 4 May 2009 01:10:01 -0400 From: Marcel Holtmann To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Marcel Holtmann Subject: [PATCH] add basic support for parsing country information element Date: Sun, 3 May 2009 22:09:47 -0700 Message-Id: <1241413787-3185-1-git-send-email-marcel@holtmann.org> Sender: linux-wireless-owner@vger.kernel.org List-ID: --- scan.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/scan.c b/scan.c index 2976115..c503487 100644 --- a/scan.c +++ b/scan.c @@ -91,6 +91,16 @@ static void print_ign(unsigned char type, unsigned char len, unsigned char *data /* ignore for now, not too useful */ } +static void print_country(unsigned char type, unsigned char len, unsigned char *data) +{ + int i; + + printf("\tCountry: %.*s data:", 3, data); + for(i=0; i