Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:38106 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756444Ab2CEIsv (ORCPT ); Mon, 5 Mar 2012 03:48:51 -0500 Received: by vbbff1 with SMTP id ff1so3204276vbb.19 for ; Mon, 05 Mar 2012 00:48:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 5 Mar 2012 14:18:50 +0530 Message-ID: (sfid-20120305_094902_281425_0EE52D94) Subject: Re: [ath9k-devel] Any recommendation of direct access the GPIO from specific address ? From: Mohammed Shafi To: Matt Chen Cc: linux-wireless , ath9k-devel@lists.ath9k.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Mar 5, 2012 at 2:14 PM, Mohammed Shafi wrote: > Hi Matt, > >> echo 0x404c to which file in /sys/kernel/debug/ath9k ? > > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# echo 0x404c > regidx > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c45 > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c45 > > -> toggle the rfkill button, wifi off > > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c55 > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c55 > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c55 > > -> toggle the rfkill button, wifi ON > > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c45 > root@shafi-laptop:/sys/kernel/debug/ieee80211/phy0/ath9k# cat regval > 0x00000c45 > > please also see the dump of rfkill list, as i am external PCI card, my > card is only softblocked. please note my chip is AR9462, (AR9300 family) > > -- > thanks, > shafi -- thanks, shafi