Kconfig options and make command line
I was trying to compile the file: drivers/staging/rtl8723au/core/rtw_ap.c but $ make drivers/staging/rtl8723au/core/rtw_ap.o doesn't work as there is no Makefile at core directory. Doing: $ make drivers/staging/rtl8723au/ doesn't work also as rtw_ap.c is only compiled under certain Kconfig conditions due this line at the Makefile: r8723au-$(CONFIG_8723AU_AP_MODE) += core/rtw_ap.o So is there a way to compile rtw_ap.o by just passing arguments to make? -- Peter ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Kconfig options and make command line
Sorry for the noise. $ make allyesconfig drivers/staging/rtl8723au/ does the trick. On Sun, Oct 26, 2014 at 9:19 AM, Peter Senna Tschudin peter.se...@gmail.com wrote: I was trying to compile the file: drivers/staging/rtl8723au/core/rtw_ap.c but $ make drivers/staging/rtl8723au/core/rtw_ap.o doesn't work as there is no Makefile at core directory. Doing: $ make drivers/staging/rtl8723au/ doesn't work also as rtw_ap.c is only compiled under certain Kconfig conditions due this line at the Makefile: r8723au-$(CONFIG_8723AU_AP_MODE) += core/rtw_ap.o So is there a way to compile rtw_ap.o by just passing arguments to make? -- Peter -- Peter ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Kconfig options and make command line
On Sun, Oct 26, 2014 at 09:25:01AM +0100, Peter Senna Tschudin wrote: Sorry for the noise. $ make allyesconfig drivers/staging/rtl8723au/ does the trick. that seems like overkill, why not just enable the CONFIG_8723AU_AP_MODE setting? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: i2c-dev
On Thu, Oct 23, 2014 at 08:15:53PM +0200, Paul Bolle wrote: I'm afraid I can't really help you here, sorry. That is, except for the obvious question whether this is a regression (ie, do releases v3.17 or earlier show something in /sys/bus/i2c/devices/?) or a configuration issue (perhaps a distribution provided kernel does show what you want). I didn't have any devices drivers loaded for things that had i2c devices. I loaded the i915 gpu driver and now I see stuff. root@vega:/home/john/linux# i2cdetect -l i2c-0 i2c i915 gmbus ssc I2C adapter i2c-1 i2c i915 gmbus vga I2C adapter i2c-2 i2c i915 gmbus panelI2C adapter i2c-3 i2c i915 gmbus dpc I2C adapter i2c-4 i2c i915 gmbus dpb I2C adapter i2c-5 i2c i915 gmbus dpd I2C adapter i2c-6 i2c DPDDC-B I2C adapter ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Kconfig options and make command line
On Sun, 26 Oct 2014 12:01:05 -0400, John de la Garza said: On Sun, Oct 26, 2014 at 09:25:01AM +0100, Peter Senna Tschudin wrote: Sorry for the noise. $ make allyesconfig drivers/staging/rtl8723au/ does the trick. that seems like overkill, why not just enable the CONFIG_8723AU_AP_MODE setting? Not only is it overkill, the resulting .o file can't be modprobed into a kernel. Enabling the Kconfig variable is a better answer. pgpNn48ehwJrB.pgp Description: PGP signature ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
[PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
Fix all opening and closing braces issues reported by checkpatch. Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/staging/rtl8723au/core/rtw_ap.c | 138 ++-- 1 file changed, 43 insertions(+), 95 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c index 75ae249..3301a2c 100644 --- a/drivers/staging/rtl8723au/core/rtw_ap.c +++ b/drivers/staging/rtl8723au/core/rtw_ap.c @@ -231,12 +231,10 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter) psta-expire_to--; } - if (psta-expire_to = 0) - { + if (psta-expire_to = 0) { struct mlme_ext_priv *pmlmeext = padapter-mlmeextpriv; - if (padapter-registrypriv.wifi_spec == 1) - { + if (padapter-registrypriv.wifi_spec == 1) { psta-expire_to = pstapriv-expire_to; continue; } @@ -308,15 +306,12 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter) ret = issue_nulldata23a(padapter, psta-hwaddr, 0, 3, 50); psta-keep_alive_trycnt++; - if (ret == _SUCCESS) - { + if (ret == _SUCCESS) { DBG_8723A(asoc check, sta( MAC_FMT ) is alive\n, MAC_ARG(psta-hwaddr)); psta-expire_to = pstapriv-expire_to; psta-keep_alive_trycnt = 0; continue; - } - else if (psta-keep_alive_trycnt = 3) - { + } else if (psta-keep_alive_trycnt = 3) { DBG_8723A(ack check for asoc expire, keep_alive_trycnt =%d\n, psta-keep_alive_trycnt); psta-expire_to = 1; continue; @@ -363,8 +358,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l return; /* b/g mode ra_bitmap */ - for (i = 0; i sizeof(psta-bssrateset); i++) - { + for (i = 0; i sizeof(psta-bssrateset); i++) { if (psta-bssrateset[i]) tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta-bssrateset[i]0x7f); } @@ -406,8 +400,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l raid = networktype_to_raid23a(sta_band); init_rate = get_highest_rate_idx23a(tx_ra_bitmap0x0fff)0x3f; - if (psta-aid NUM_STA) - { + if (psta-aid NUM_STA) { u8 arg = 0; arg = psta-mac_id0x1f; @@ -436,9 +429,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l psta-raid = raid; psta-init_rate = init_rate; - } - else - { + } else { DBG_8723A(station aid %d exceed the max number\n, psta-aid); } } @@ -453,8 +444,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter) struct wlan_bssid_ex *pcur_network = pmlmepriv-cur_network.network; struct sta_info *psta = rtw_get_bcmc_stainfo23a(padapter); - if (psta) - { + if (psta) { psta-aid = 0;/* default set to 0 */ psta-mac_id = psta-aid + 1; @@ -474,8 +464,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter) psta-bssratelen = supportRateNum; /* b/g mode ra_bitmap */ - for (i = 0; i supportRateNum; i++) - { + for (i = 0; i supportRateNum; i++) { if (psta-bssrateset[i]) tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta-bssrateset[i]0x7f); } @@ -522,9 +511,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter) psta-state = _FW_LINKED; spin_unlock_bh(psta-lock); - } - else - { + } else { DBG_8723A(add_RATid23a_bmc_sta error!\n); } } @@ -561,8 +548,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info /* ERP */ VCS_update23a(padapter, psta); /* HT related cap */ - if (phtpriv_sta-ht_option) - { + if (phtpriv_sta-ht_option) { /* check if sta supports rx ampdu */ phtpriv_sta-ampdu_enable = phtpriv_ap-ampdu_enable; @@ -580,9 +566,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info psta-qos_option = true; - } - else - { + } else { phtpriv_sta-ampdu_enable = false; phtpriv_sta-sgi = false; @@ -1258,8 +1242,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8
Re: I remove the audit and selinux from kernel and start the new kernel in Centos, but i can't bring up the network device, Why?
Hi Sizel, just some possibly pertinent question: On Mon, Oct 13, 2014 at 2:36 PM, valdis.kletni...@vt.edu wrote: On Mon, 13 Oct 2014 13:04:08 +0800, sizel said: I remove the audit and selinux from kernel and start the new kernel in Centos, but i can't bring up the network device, Why? remove...how do u do it? recompile kernel CONFIG with SELINUX=n and AUDIT=n? or u just followed standard procedures (like below): http://www.crypt.gen.nz/selinux/disable_selinux.html https://www.digitalocean.com/community/tutorials/an-introduction-to-selinux-on-centos-7-part-1-basic-concepts just like this case: https://www.centos.org/forums/viewtopic.php?t=30942 I suspect it is just the improper way of configuring/disabling your SELINUX that you got the errorstry again. This would be a lot easier to answer if you gave us some actual details: 1) Why did you think audit and selinux were the problem? (They probably aren't). 2) What *exactly is the network device? A wireless card? 1G ethernet? 10G Ethernet? INfiniband? Something else? 3) What configuration are you trying to set up? 4) What error message, if any, do you get? 5) Have you ruled out the easy stuff, like trying to start an Ethernet port with a missing/bad cable? 6) Why do you think it's a kernel problem and not a userspace problem? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Regards, Peter Teoh ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies