From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1398440696.4152.26.camel@jlt4.sipsolutions.net> From: Johannes Berg Date: Fri, 25 Apr 2014 17:44:56 +0200 In-Reply-To: <1397484205-20905-2-git-send-email-antonio@meshcoding.com> References: <1397484205-20905-1-git-send-email-antonio@meshcoding.com> <1397484205-20905-2-git-send-email-antonio@meshcoding.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [B.A.T.M.A.N.] [PATCH 2/7] mac80211: add get_expected_throughput API Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Antonio Quartulli Cc: devel@lists.open80211s.org, b.a.t.m.a.n@lists.open-mesh.org, linux-wireless@vger.kernel.org, Antonio Quartulli On Mon, 2014-04-14 at 16:03 +0200, Antonio Quartulli wrote: > + u32 (*get_expected_throughput)(struct ieee80211_sta *sta); This isn't nice - it forces drivers to conjure up a value. You should probably at least allow returning 0 for "no idea" or something. johannes