Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3336088pxk; Mon, 7 Sep 2020 09:54:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd5eAYnN1aTjvc4tZusYM0fc/pFmjlnZ1s0fbU+I+Um05KI5di9ZorD7u4ahyEF8GYo//G X-Received: by 2002:a17:906:d6a:: with SMTP id s10mr17179883ejh.413.1599497663614; Mon, 07 Sep 2020 09:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599497663; cv=none; d=google.com; s=arc-20160816; b=kD77aGPFo+tR2/hqoEbo3lpMwnQidpwAjPBMozYdIW0cB/hTapAeQtSwrSU2lFAfzS 6WqLw1d9R+pSauwNM7wBN8JLZBiAM6yxcLEwJl3Rajt3vSWSzyn65RLS6k72J8ucJGeE nSWRvWPpGxrgCJr0sM0DQoDnqIUswZelHz7F/BZnViL4jFQTGiwfwTYYtAMAZF0EL46q lQTqkY4KmUhAOM56+MWrYdg9dhGEuAFf41n56Hwig0NaHyWzge+QB3YK0c/Xay8GtkhZ DaIVVBWWKsmxCjTcRnsUukoW4hPwQAoVbJjsOCLgJlQ7/5cv9xOga8LMhreNA8wqGtJi +sDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=CLYBW1DqMFCcMnJRqnT+cFFuLQoDXMCKvx20mOWyt1g=; b=CB2PAIJBYrN3Zfy5jclHJXSH0a1H5ULYsVJAukKEY4HKP1vB11mZrmN/vhufaZUkq0 S8bQi9m0us+y9zzZBj00d3geKVN5rI2id6OOXzC9o2uHXl3SAHj8PZEQlfJO31rBwuPV WFOTfOZ4diJkcTw2E0UZtUJtWnpU76RGOYyRqEZCVLkpuFSRyugIzzgo14pQidBo5NLq CEsq2w2nr22qvXtKwShYPA0noSl9WfVasmLK8n/4N4YgBxhEPJ1hQ/BjqobJ2Ep1mCdK UcjLYAJJ61Znja+oX897Blqq9lKmFFVs/VesdsaXa4yYXXg8IhjRUf6kAdVwvzICOk+T 6jSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si9982122eds.168.2020.09.07.09.53.59; Mon, 07 Sep 2020 09:54:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730905AbgIGQxJ (ORCPT + 99 others); Mon, 7 Sep 2020 12:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730455AbgIGQwW (ORCPT ); Mon, 7 Sep 2020 12:52:22 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39BCC061573 for ; Mon, 7 Sep 2020 09:52:21 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kFKNM-000Co9-CN; Mon, 07 Sep 2020 18:52:16 +0200 Message-ID: Subject: Re: alternatives to screenscraping iw? From: Johannes Berg To: Krishna Chaitanya Cc: Paul Cercueil , linux-wireless , od@zcrc.me Date: Mon, 07 Sep 2020 18:52:15 +0200 In-Reply-To: (sfid-20200907_182259_380510_19DC3CE1) References: <04HAGQ.ASDIWY4TQH8H3@crapouillou.net> <55e3de67208c2120857102d13a896553fbf223b4.camel@sipsolutions.net> (sfid-20200907_182259_380510_19DC3CE1) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2020-09-07 at 21:52 +0530, Krishna Chaitanya wrote: > > FYI, We have open-sourced our internal library which takes care of abstracting > Netlink attributes, just need to define commands and event messages in JSON, > https://github.com/bluwireless/py-genl. The initial port of all > messages might be an effort but extending it would be easy. Nice. I wonder if the netlink policy export I wrote for the kernel could be used to generate attribute descriptions? Even if it means just running a tool in a latest kernel VM to do it. johannes