From mboxrd@z Thu Jan 1 00:00:00 1970 From: Date: Fri, 05 Aug 2011 03:08:35 -0000 Subject: No subject Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org so the user should only be allowed to change the value to anything else than what is stored in the eeprom if we know it's a valid setting. As far as I understand the EEPROM only stores a single value for the antenna-switch setting, i.e. if there multiple valid values these must come from somewhere else. I don't know the exact electronic details of the implementation, so I'd go with a list of known-to-be-good values (passed to the driver via platform-data) instead of a causal check (e.g. don't allow to set the TX and RX to the same antenna or whatever you imagine to possibly be an invalid setting). Cheers Daniel