From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.candelatech.com ([208.74.158.172]:38631 "EHLO ns3.lanforge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933429Ab0I0XRV (ORCPT ); Mon, 27 Sep 2010 19:17:21 -0400 Received: from [192.168.100.195] (firewall.candelatech.com [70.89.124.249]) (authenticated bits=0) by ns3.lanforge.com (8.14.2/8.14.2) with ESMTP id o8RNHKrN023690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 27 Sep 2010 16:17:20 -0700 Message-ID: <4CA12600.5070304@candelatech.com> Date: Mon, 27 Sep 2010 16:17:20 -0700 From: Ben Greear MIME-Version: 1.0 To: "linux-wireless@vger.kernel.org" Subject: Given an interface, how to tell if it's associated? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: I need to iterate through all local->interfaces and if they are stations, figure out if they are associated or not. I tried checking for existence of sdata->u.mgd.associated, but it is always null (I'm using non-encrypted links currently, in case that matters.) I'd also like to know if any are authenticated. I cannot figure out a clean way to do this..any suggestions? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com