/* * This header provides constants for the reset controller * based peripheral powerdown requests on the STMicroelectronics * STiH407 SoC. */ #ifndef _DT_BINDINGS_RESET_CONTROLLER_STIH407 #define _DT_BINDINGS_RESET_CONTROLLER_STIH407 /* Powerdown requests control 0 */ #define STIH407_EMISS_POWERDOWN 0 #define STIH407_NAND_POWERDOWN 1 /* Synp GMAC PowerDown */ #define STIH407_ETH1_POWERDOWN 2 /* Powerdown requests control 1 */ #define STIH407_USB3_POWERDOWN 3 #define STIH407_USB2_PORT1_POWERDOWN 4 #define STIH407_USB2_PORT0_POWERDOWN 5 #define STIH407_PCIE1_POWERDOWN 6 #define STIH407_PCIE0_POWERDOWN 7 #define STIH407_SATA1_POWERDOWN 8 #define STIH407_SATA0_POWERDOWN 9 /* Reset defines */ #define STIH407_ETH1_SOFTRESET 0 #define STIH407_MMC1_SOFTRESET 1 #define STIH407_PICOPHY_SOFTRESET 2 #define STIH407_IRB_SOFTRESET 3 #define STIH407_PCIE0_SOFTRESET 4 #define STIH407_PCIE1_SOFTRESET 5 #define STIH407_SATA0_SOFTRESET 6 #define STIH407_SATA1_SOFTRESET 7 #define STIH407_MIPHY0_SOFTRESET 8 #define STIH407_MIPHY1_SOFTRESET 9 #define STIH407_MIPHY2_SOFTRESET 10 #define STIH407_SATA0_PWR_SOFTRESET 11 #define STIH407_SATA1_PWR_SOFTRESET 12 #define STIH407_DELTA_SOFTRESET 13 #define STIH407_BLITTER_SOFTRESET 14 #define STIH407_HDTVOUT_SOFTRESET 15 #define STIH407_HDQVDP_SOFTRESET 16 #define STIH407_VDP_AUX_SOFTRESET 17 #define STIH407_COMPO_SOFTRESET 18 #define STIH407_HDMI_TX_PHY_SOFTRESET 19 #define STIH407_JPEG_DEC_SOFTRESET 20 #define STIH407_VP8_DEC_SOFTRESET 21 #define STIH407_GPU_SOFTRESET 22 #define STIH407_HVA_SOFTRESET 23 #define STIH407_ERAM_HVA_SOFTRESET 24 #define STIH407_LPM_SOFTRESET 25 #define STIH407_KEYSCAN_SOFTRESET 26 #define STIH407_USB2_PORT0_SOFTRESET 27 #define STIH407_USB2_PORT1_SOFTRESET 28 #define STIH407_ST231_AUD_SOFTRESET 29 #define STIH407_ST231_DMU_SOFTRESET 30 #define STIH407_ST231_GP0_SOFTRESET 31 #define STIH407_ST231_GP1_SOFTRESET 32 /* Picophy reset defines */ #define STIH407_PICOPHY0_RESET 0 #define STIH407_PICOPHY1_RESET 1 #define STIH407_PICOPHY2_RESET 2 #endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH407 */ -remove&id=8585989d146c61dd073d2135c5bb11d0f979d576'>diff
path: root/net
AgeCommit message (Collapse)AuthorFilesLines
2017-02-09cfg80211: fix NAN bands definitionLuca Coelho5-27/+47
The nl80211_nan_dual_band_conf enumeration doesn't make much sense. The default value is assigned to a bit, which makes it weird if the default bit and other bits are set at the same time. To improve this, get rid of NL80211_NAN_BAND_DEFAULT and add a wiphy configuration to let the drivers define which bands are supported. This is exposed to the userspace, which then can make a decision on which band(s) to use. Additionally, rename all "dual_band" elements to "bands", to make things clearer. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08cfg80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski3-7/+15
Update the drivers to pass the RSSI level as a cfg80211_cqm_rssi_notify parameter and pass this value to userspace in a new nl80211 attribute. This helps both userspace and also helps in the implementation of the multiple RSSI thresholds CQM mechanism. Note for marvell/mwifiex I pass 0 for the RSSI value because the new RSSI value is not available to the driver at the time of the cfg80211_cqm_rssi_notify call, but the driver queries the new value immediately after that, so it is actually available just a moment later if we wanted to defer caling cfg80211_cqm_rssi_notify until that moment. Without this, the new cfg80211 code (patch 3) will call .get_station which will send a duplicate HostCmd_CMD_RSSI_INFO command to the hardware. Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08mac80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski2-7/+11
Extend ieee80211_cqm_rssi_notify with a rssi_level parameter so that this information can be passed to netlink clients in the next patch, if available. Most drivers will have this value at hand. wl1251 receives events from the firmware that only tell it whether latest measurement is above or below threshold so we don't pass any value at this time (parameter is 0). Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08nl80211: fix validation of scheduled scan info for wowlan netdetectArend Van Spriel1-4/+6
For wowlan netdetect a separate limit is defined for the number of matchsets. Currently, this limit is ignored and the regular limit for scheduled scan matchsets, ie. struct wiphy::max_match_sets, is used for the net-detect case as well. Cc: Johannes Berg <johannes@sipsolutions.net> Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> Reviewed-by: Franky Lin <franky.lin@broadcom.com> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08nl80211: add HT/VHT capabilities to AP parametersJohannes Berg1-1/+46
For the benefit of drivers that rebuild IEs in firmware, parse the IEs for HT/VHT capabilities and the respective membership selector in the (extended) supported rates. This avoids duplicating the same code into all drivers that need this information. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08cfg80211: make rdev assignment clearer in nl80211_testmode_dump()Luca Coelho1-7/+6
Avoid assigning rdev to NULL when we already have it and getting it again from the wiphy index, by moving this code to relevant if block. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08mac80211: check for allocation failure in debugfs codeDan Carpenter1-2/+9
kmalloc() can fail. Also let's move the allocation out of the declaration block so it's easier to read. Fixes: 4a5eccaa9350 ("mac80211: Show pending txqlen in debugfs.") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08mac80211: aes-cmac: switch to shash CMAC driverArd Biesheuvel3-107/+32
Instead of open coding the CMAC algorithm in the mac80211 driver using byte wide xors and calls into the crypto layer for each block of data, instantiate a cmac(aes) synchronous hash and pass all the data into it directly. This does not only simplify the code, it also allows the use of more efficient and more secure implementations, especially on platforms where SIMD ciphers have a considerable setup cost. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08mac80211: fils_aead: Use crypto api CMAC shash rather than bare cipherArd Biesheuvel3-45/+34
Switch the FILS AEAD code to use a cmac(aes) shash instantiated by the crypto API rather than reusing the open coded implementation in aes_cmac_vector(). This makes the code more understandable, and allows platforms to implement cmac(aes) in a more secure (*) and efficient way than is typically possible when using the AES cipher directly. So replace the crypto_cipher by a crypto_shash, and update the aes_s2v() routine to call the shash interface directly. * In particular, the generic table based AES implementation is sensitive to known-plaintext timing attacks on the key, to which AES based MAC algorithms are especially vulnerable, given that their plaintext is not usually secret. Time invariant alternatives are available (e.g., based on SIMD algorithms), but may incur a setup cost that is prohibitive when operating on a single block at a time, which is why they don't usually expose the cipher API. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-08cfg80211 debugfs: Cleanup some checkpatch issuesPichugin Dmitry1-5/+5
This fixes the checkpatch.pl warnings: * Macros should not use a trailing semicolon. * Spaces required around that '='. * Symbolic permissions 'S_IRUGO' are not preferred. Signed-off-by: Dmitriy Pichugin <smokeman85@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>